Skip to content

Commit

Permalink
CNZSL: Add nzslHashOption function
Browse files Browse the repository at this point in the history
  • Loading branch information
SirLynix committed Apr 29, 2024
1 parent 333d4be commit e5b8261
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/CNZSL/WriterStates.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ extern "C"

typedef uint32_t nzslOptionHash;

CNZSL_API nzslOptionHash nzslHashOption(const char* str);

typedef struct nzslWriterStates nzslWriterStates;

CNZSL_API nzslWriterStates* nzslWriterStatesCreate(void);
Expand Down
5 changes: 5 additions & 0 deletions src/CNZSL/WriterStates.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@

extern "C"
{
CNZSL_API nzslOptionHash nzslHashOption(const char* str)
{
return nzsl::Ast::HashOption(str);
}

CNZSL_API nzslWriterStates* nzslWriterStatesCreate(void)
{
return new nzslWriterStates;
Expand Down

0 comments on commit e5b8261

Please sign in to comment.