diff options
| author | HampusM <hampus@hampusmat.com> | 2023-03-05 20:23:24 +0100 | 
|---|---|---|
| committer | HampusM <hampus@hampusmat.com> | 2023-03-05 20:31:47 +0100 | 
| commit | 3f26d9e7ebadb145fde8d5dcc60429c7ba4c2399 (patch) | |
| tree | 4b16a9111b1f911bd26ec0c636e6de4b80ea730c /src/lib.rs | |
| parent | 3d9c9d7ac68a439a29c8ad0a745a7e2a52234a44 (diff) | |
refactor: clarify name of the gl_command replaced ident
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 8 | 
1 files changed, 4 insertions, 4 deletions
| @@ -14,7 +14,7 @@ mod repeat;  mod str;  mod token_stream; -const OPENGL_CMD_IDENT_REPLACE: &str = "gl_command"; +const OPENGL_CMD_NAME_REPLACE: &str = "gl_command_name";  const OPENGL_CMD_RET_TYPE_REPLACE: &str = "gl_command_ret_type";  const OPENGL_CMD_ARGS_REPLACE: &str = "gl_command_args";  const OPENGL_CMD_ARG_NAMES_REPLACE: &str = "gl_command_arg_names"; @@ -29,7 +29,7 @@ static OPENGL_REGISTRY: Lazy<Registry> = Lazy::new(|| Registry::retrieve().unwra  ///  /// ### The following identifiers will be replaced  /// -/// **`gl_command`**<br> +/// **`gl_command_name`**<br>  /// Will be replaced by the full command name. For example, `glViewport`.  ///  /// **`gl_command_ret_type`**<br> @@ -49,9 +49,9 @@ static OPENGL_REGISTRY: Lazy<Registry> = Lazy::new(|| Registry::retrieve().unwra  /// ```  /// # use opengl_registry_macros::for_each_opengl_command;  /// for_each_opengl_command! { -///     fn #gl_command() +///     fn #gl_command_name()  ///     { -///         println!("Hello from {}", stringify!(#gl_command)); +///         println!("Hello from {}", stringify!(#gl_command_name));  ///     }  /// }  /// ``` | 
