Skip to content

Commit bc09520

Browse files
committed
Add constructors for xr_token
1 parent 62055f2 commit bc09520

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/xrCore/_std_extensions.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,10 @@ IC int xr_sprintf(char* dest, size_t sizeOfBuffer, const char* format, ...)
6868
// token type definition
6969
struct XRCORE_API xr_token
7070
{
71-
LPCSTR name;
71+
xr_token(): name(nullptr), id(0) {}
72+
xr_token(const pcstr _name, const int _id) : name(_name), id(_id) {}
73+
74+
pcstr name;
7275
int id;
7376
};
7477

0 commit comments

Comments
 (0)