mirror of
https://github.com/Ed94/gencpp.git
synced 2025-06-15 03:01:47 -07:00
compiles agian...
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
#pragma once
|
||||
#include "static_data.cpp"
|
||||
// #include "static_data.cpp"
|
||||
|
||||
Code Code::Global;
|
||||
Code Code::Invalid;
|
||||
|
@ -1,8 +1,8 @@
|
||||
#pragma once
|
||||
#include "types.hpp"
|
||||
#include "temp/ecode.hpp"
|
||||
#include "temp/eoperator.hpp"
|
||||
#include "temp/especifier.hpp"
|
||||
// #include "types.hpp"
|
||||
// #include "temp/ecode.hpp"
|
||||
// #include "temp/eoperator.hpp"
|
||||
// #include "temp/especifier.hpp"
|
||||
|
||||
struct AST;
|
||||
struct AST_Body;
|
||||
|
@ -1,5 +1,5 @@
|
||||
#pragma once
|
||||
#include "ast.hpp"
|
||||
// #include "ast.hpp"
|
||||
|
||||
#pragma region AST Types
|
||||
/*
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
#include "inlines.hpp"
|
||||
#include "temp/ast_inlines.hpp"
|
||||
// #include "inlines.hpp"
|
||||
// #include "temp/ast_inlines.hpp"
|
||||
|
||||
#pragma region Constants
|
||||
|
||||
@ -77,7 +77,7 @@ extern CodeSpecifiers spec_constexpr;
|
||||
extern CodeSpecifiers spec_constinit;
|
||||
extern CodeSpecifiers spec_extern_linkage;
|
||||
extern CodeSpecifiers spec_final;
|
||||
extern CodeSpeciifers spec_forceinline;
|
||||
extern CodeSpecifiers spec_forceinline;
|
||||
extern CodeSpecifiers spec_global;
|
||||
extern CodeSpecifiers spec_inline;
|
||||
extern CodeSpecifiers spec_internal_linkage;
|
||||
@ -144,11 +144,11 @@ extern CodeType t_typename;
|
||||
|
||||
# define args( ... ) num_args( __VA_ARGS__ ), __VA_ARGS__
|
||||
|
||||
# define code_str( ... ) gen::untyped_str( code( __VA_ARGS__ ) )
|
||||
# define code_fmt( ... ) gen::untyped_str( token_fmt( __VA_ARGS__ ) )
|
||||
# define code_str( ... ) GEN_NS untyped_str( code( __VA_ARGS__ ) )
|
||||
# define code_fmt( ... ) GEN_NS untyped_str( token_fmt( __VA_ARGS__ ) )
|
||||
|
||||
// Takes a format string (char const*) and a list of tokens (StrC) and returns a StrC of the formatted string.
|
||||
# define token_fmt( ... ) gen::token_fmt_impl( (num_args( __VA_ARGS__ ) + 1) / 2, __VA_ARGS__ )
|
||||
# define token_fmt( ... ) GEN_NS token_fmt_impl( (num_args( __VA_ARGS__ ) + 1) / 2, __VA_ARGS__ )
|
||||
|
||||
#pragma endregion Macros
|
||||
|
||||
|
@ -20,9 +20,11 @@
|
||||
|
||||
#ifndef GEN_NS_BEGIN
|
||||
# ifdef GEN_DONT_USE_NAMESPACE
|
||||
# define GEN_NS
|
||||
# define GEN_NS_BEGIN
|
||||
# define GEN_NS_END
|
||||
# else
|
||||
# define GEN_NS gen::
|
||||
# define GEN_NS_BEGIN namespace gen {
|
||||
# define GEN_NS_END }
|
||||
# endif
|
||||
|
@ -1,5 +1,5 @@
|
||||
#pragma once
|
||||
#include "interface.hpp"
|
||||
// #include "interface.hpp"
|
||||
|
||||
void AST::append( AST* other )
|
||||
{
|
||||
|
@ -1,5 +1,5 @@
|
||||
#pragma once
|
||||
#include "ast.cpp"
|
||||
// #include "ast.cpp"
|
||||
|
||||
internal void init_parser();
|
||||
internal void deinit_parser();
|
||||
|
@ -1,5 +1,5 @@
|
||||
#pragma once
|
||||
#include "ast_types.hpp"
|
||||
// #include "ast_types.hpp"
|
||||
|
||||
#pragma region Gen Interface
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
#include "temp/etoktype.cpp"
|
||||
#include "interface.upfront.cpp"
|
||||
// #include "temp/etoktype.cpp"
|
||||
// #include "interface.upfront.cpp"
|
||||
|
||||
namespace Parser
|
||||
{
|
||||
|
@ -1,5 +1,5 @@
|
||||
#pragma once
|
||||
#include "interface.parsing.cpp"
|
||||
// #include "interface.parsing.cpp"
|
||||
|
||||
sw token_fmt_va( char* buf, uw buf_size, s32 num_tokens, va_list va )
|
||||
{
|
||||
|
@ -1,5 +1,5 @@
|
||||
#pragma once
|
||||
#include "interface.cpp"
|
||||
// #include "interface.cpp"
|
||||
|
||||
#pragma region Upfront
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
#pragma once
|
||||
#include "src_start.cpp"
|
||||
// #include "src_start.cpp"
|
||||
|
||||
#pragma region StaticData
|
||||
|
||||
@ -50,7 +50,7 @@ global CodeSpecifiers spec_constexpr;
|
||||
global CodeSpecifiers spec_constinit;
|
||||
global CodeSpecifiers spec_extern_linkage;
|
||||
global CodeSpecifiers spec_final;
|
||||
global CodeSpeciifers spec_forceinline;
|
||||
global CodeSpecifiers spec_forceinline;
|
||||
global CodeSpecifiers spec_global;
|
||||
global CodeSpecifiers spec_inline;
|
||||
global CodeSpecifiers spec_internal_linkage;
|
||||
|
@ -1,5 +1,5 @@
|
||||
#pragma once
|
||||
#include "header_start.hpp"
|
||||
// #include "header_start.hpp"
|
||||
|
||||
using LogFailType = sw(*)(char const*, ...);
|
||||
|
||||
|
Reference in New Issue
Block a user