Skip to content

Commit

Permalink
Add constructors for xr_token
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed Jan 9, 2018
1 parent 62055f2 commit bc09520
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/xrCore/_std_extensions.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ IC int xr_sprintf(char* dest, size_t sizeOfBuffer, const char* format, ...)
// token type definition
struct XRCORE_API xr_token
{
LPCSTR name;
xr_token(): name(nullptr), id(0) {}
xr_token(const pcstr _name, const int _id) : name(_name), id(_id) {}

pcstr name;
int id;
};

Expand Down

0 comments on commit bc09520

Please sign in to comment.