2023-08-28 23:46:50 -04:00
|
|
|
#ifdef GEN_INTELLISENSE_DIRECTIVES
|
2023-08-21 20:30:13 -04:00
|
|
|
#pragma once
|
2023-08-21 23:02:20 -04:00
|
|
|
#include "inlines.hpp"
|
2023-08-21 23:28:39 -04:00
|
|
|
#include "gen/ast_inlines.hpp"
|
2023-08-28 23:46:50 -04:00
|
|
|
#endif
|
2023-08-21 20:30:13 -04:00
|
|
|
|
2023-07-24 17:45:27 -04:00
|
|
|
#pragma region Constants
|
2023-07-28 21:44:31 -04:00
|
|
|
|
2024-12-12 12:55:15 -05:00
|
|
|
extern Str enum_underlying_sig;
|
2024-12-11 13:33:35 -05:00
|
|
|
|
2023-07-24 17:45:27 -04:00
|
|
|
extern Code access_public;
|
|
|
|
extern Code access_protected;
|
|
|
|
extern Code access_private;
|
|
|
|
|
2023-07-30 01:21:04 -04:00
|
|
|
extern CodeAttributes attrib_api_export;
|
|
|
|
extern CodeAttributes attrib_api_import;
|
|
|
|
|
2023-07-24 17:45:27 -04:00
|
|
|
extern Code module_global_fragment;
|
|
|
|
extern Code module_private_fragment;
|
|
|
|
|
2023-08-04 16:12:13 -04:00
|
|
|
extern Code fmt_newline;
|
|
|
|
|
2023-07-30 01:21:04 -04:00
|
|
|
extern CodePragma pragma_once;
|
|
|
|
|
2024-12-11 13:33:35 -05:00
|
|
|
extern CodeParams param_varadic;
|
2023-07-30 01:21:04 -04:00
|
|
|
|
|
|
|
extern CodePreprocessCond preprocess_else;
|
|
|
|
extern CodePreprocessCond preprocess_endif;
|
2023-07-24 17:45:27 -04:00
|
|
|
|
|
|
|
extern CodeSpecifiers spec_const;
|
|
|
|
extern CodeSpecifiers spec_consteval;
|
|
|
|
extern CodeSpecifiers spec_constexpr;
|
|
|
|
extern CodeSpecifiers spec_constinit;
|
|
|
|
extern CodeSpecifiers spec_extern_linkage;
|
|
|
|
extern CodeSpecifiers spec_final;
|
2023-08-21 21:40:23 -04:00
|
|
|
extern CodeSpecifiers spec_forceinline;
|
2023-07-24 17:45:27 -04:00
|
|
|
extern CodeSpecifiers spec_global;
|
|
|
|
extern CodeSpecifiers spec_inline;
|
|
|
|
extern CodeSpecifiers spec_internal_linkage;
|
|
|
|
extern CodeSpecifiers spec_local_persist;
|
|
|
|
extern CodeSpecifiers spec_mutable;
|
2023-08-02 12:39:35 -04:00
|
|
|
extern CodeSpecifiers spec_neverinline;
|
2023-09-11 23:22:53 -04:00
|
|
|
extern CodeSpecifiers spec_noexcept;
|
2023-07-24 17:45:27 -04:00
|
|
|
extern CodeSpecifiers spec_override;
|
|
|
|
extern CodeSpecifiers spec_ptr;
|
2023-08-07 03:10:45 -04:00
|
|
|
extern CodeSpecifiers spec_pure;
|
2023-07-24 17:45:27 -04:00
|
|
|
extern CodeSpecifiers spec_ref;
|
|
|
|
extern CodeSpecifiers spec_register;
|
|
|
|
extern CodeSpecifiers spec_rvalue;
|
|
|
|
extern CodeSpecifiers spec_static_member;
|
|
|
|
extern CodeSpecifiers spec_thread_local;
|
|
|
|
extern CodeSpecifiers spec_virtual;
|
|
|
|
extern CodeSpecifiers spec_volatile;
|
2023-07-28 21:44:31 -04:00
|
|
|
|
2024-12-03 15:19:39 -05:00
|
|
|
extern CodeTypename t_empty; // Used with varaidc parameters. (Exposing just in case its useful for another circumstance)
|
|
|
|
extern CodeTypename t_auto;
|
|
|
|
extern CodeTypename t_void;
|
|
|
|
extern CodeTypename t_int;
|
|
|
|
extern CodeTypename t_bool;
|
|
|
|
extern CodeTypename t_char;
|
|
|
|
extern CodeTypename t_wchar_t;
|
|
|
|
extern CodeTypename t_class;
|
|
|
|
extern CodeTypename t_typename;
|
2023-07-30 01:21:04 -04:00
|
|
|
|
|
|
|
#ifdef GEN_DEFINE_LIBRARY_CODE_CONSTANTS
|
|
|
|
// Predefined typename codes. Are set to readonly and are setup during gen::init()
|
2024-12-13 19:16:52 -05:00
|
|
|
extern Context* _ctx;
|
2023-07-30 01:21:04 -04:00
|
|
|
|
2024-12-03 15:19:39 -05:00
|
|
|
extern CodeTypename t_b32;
|
2023-07-30 01:21:04 -04:00
|
|
|
|
2024-12-03 15:19:39 -05:00
|
|
|
extern CodeTypename t_s8;
|
|
|
|
extern CodeTypename t_s16;
|
|
|
|
extern CodeTypename t_s32;
|
|
|
|
extern CodeTypename t_s64;
|
2023-07-30 01:21:04 -04:00
|
|
|
|
2024-12-03 15:19:39 -05:00
|
|
|
extern CodeTypename t_u8;
|
|
|
|
extern CodeTypename t_u16;
|
|
|
|
extern CodeTypename t_u32;
|
|
|
|
extern CodeTypename t_u64;
|
2023-07-30 01:21:04 -04:00
|
|
|
|
2024-12-03 15:19:39 -05:00
|
|
|
extern CodeTypename t_ssize;
|
|
|
|
extern CodeTypename t_usize;
|
2023-07-30 01:21:04 -04:00
|
|
|
|
2024-12-03 15:19:39 -05:00
|
|
|
extern CodeTypename t_f32;
|
|
|
|
extern CodeTypename t_f64;
|
2023-07-30 01:21:04 -04:00
|
|
|
#endif
|
|
|
|
|
2023-07-24 17:45:27 -04:00
|
|
|
#pragma endregion Constants
|