- added a dummy struct named '_' to define global variables. This can only be used internally.
This method was chosen because it avoids adding variable declarations to the global namespace which would have required a lot more work while polluting the grammar. This way the global variables can be handled by a small bit of special coding in the struct generator.
This commit is contained in:
parent
feb680a4eb
commit
cd392e50e9
15 changed files with 135 additions and 153 deletions
|
|
@ -1783,3 +1783,17 @@ CCMD(vid_listadapters)
|
|||
if (Video != NULL)
|
||||
Video->DumpAdapters();
|
||||
}
|
||||
|
||||
DEFINE_GLOBAL(SmallFont)
|
||||
DEFINE_GLOBAL(SmallFont2)
|
||||
DEFINE_GLOBAL(BigFont)
|
||||
DEFINE_GLOBAL(ConFont)
|
||||
DEFINE_GLOBAL(IntermissionFont)
|
||||
DEFINE_GLOBAL(CleanXfac)
|
||||
DEFINE_GLOBAL(CleanYfac)
|
||||
DEFINE_GLOBAL(CleanWidth)
|
||||
DEFINE_GLOBAL(CleanHeight)
|
||||
DEFINE_GLOBAL(CleanXfac_1)
|
||||
DEFINE_GLOBAL(CleanYfac_1)
|
||||
DEFINE_GLOBAL(CleanWidth_1)
|
||||
DEFINE_GLOBAL(CleanHeight_1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue