libpulsar
A modular compiler for the pulsar programming language
Loading...
Searching...
No Matches
Macros
make.h File Reference

Retrieval of associated data from custom enum (see enum.h). More...

#include "def.h"

Go to the source code of this file.

Macros

#define TO_ENUM(enum_case, _, ...)   enum_case,
 
#define TO_STRING(_, enum_string, ...)   enum_string,
 
#define TO_STRING2(_, _0, enum_string2, ...)   enum_string2,
 

Detailed Description

Retrieval of associated data from custom enum (see enum.h).

Author
Ethan Uppal

Definition in file make.h.

Macro Definition Documentation

◆ TO_ENUM

#define TO_ENUM (   enum_case,
  _,
  ... 
)    enum_case,

Definition at line 12 of file make.h.

◆ TO_STRING

#define TO_STRING (   _,
  enum_string,
  ... 
)    enum_string,

Definition at line 13 of file make.h.

◆ TO_STRING2

#define TO_STRING2 (   _,
  _0,
  enum_string2,
  ... 
)    enum_string2,

Definition at line 14 of file make.h.