|
Ultralight C++ API 2.0.0
|
#include <Ultralight/js/API.h>
A parameter name for a registration (shown in API::schema() and in error messages).
API::Bind(), API::DefineEvent(), ClassBuilder::Method(), and ClassBuilder::StaticMethod() accept these after the callable. Name every parameter (except a CallInfo or js::Resolver) or none. The text is read during the call, so it doesn't need to outlive it.
A wrong call from the page then reports the names:
Public Member Functions | |
| constexpr | Param (const char *declared_name) |
| Create a parameter name annotation. | |
Public Attributes | |
| const char * | name |
| The parameter name. | |
|
inlineexplicitconstexpr |
Create a parameter name annotation.
| declared_name | The parameter name (NULL becomes an empty name). |
| const char* name |
The parameter name.