Joedb 9.1.4
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
Namespaces | Macros
Generator.cpp File Reference
#include "joedb/compiler/generator/Generator.h"
#include "joedb/get_version.h"
#include "joedb/ui/get_time_string.h"
#include <iostream>
#include <filesystem>
#include "joedb/TYPE_MACRO.h"
Include dependency graph for Generator.cpp:

Go to the source code of this file.

Namespaces

namespace  joedb
 
namespace  joedb::generator
 One code generator for each of the file generated by joedbc.
 

Macros

#define TYPE_MACRO(storage_tt, return_tt, type_id, read, write)
 
#define TYPE_MACRO_NO_REFERENCE
 
#define STRINGIFY(X)   #X
 
#define EXPAND_AND_STRINGIFY(X)   STRINGIFY(X)
 
#define TYPE_MACRO(a, b, type_id, d, e)   EXPAND_AND_STRINGIFY(type_id),
 
#define TYPE_MACRO(a, type, c, d, e)   EXPAND_AND_STRINGIFY(type),
 
#define TYPE_MACRO(storage, b, c, d, e)   EXPAND_AND_STRINGIFY(storage),
 

Macro Definition Documentation

◆ EXPAND_AND_STRINGIFY

#define EXPAND_AND_STRINGIFY (   X)    STRINGIFY(X)

Definition at line 125 of file Generator.cpp.

◆ STRINGIFY

#define STRINGIFY (   X)    #X

Definition at line 124 of file Generator.cpp.

◆ TYPE_MACRO [1/4]

#define TYPE_MACRO (   a,
  b,
  type_id,
  d,
 
)    EXPAND_AND_STRINGIFY(type_id),

◆ TYPE_MACRO [2/4]

#define TYPE_MACRO (   a,
  type,
  c,
  d,
 
)    EXPAND_AND_STRINGIFY(type),

◆ TYPE_MACRO [3/4]

#define TYPE_MACRO (   storage,
  b,
  c,
  d,
 
)    EXPAND_AND_STRINGIFY(storage),

◆ TYPE_MACRO [4/4]

#define TYPE_MACRO (   storage_tt,
  return_tt,
  type_id,
  read,
  write 
)
Value:
case Type::Type_Id::type_id:\
if (return_type || setter_type)\
out << #return_tt;\
else\
out << #storage_tt;\
break;

◆ TYPE_MACRO_NO_REFERENCE

#define TYPE_MACRO_NO_REFERENCE