MCPcopy Create free account
hub / github.com/JACoders/OpenJK / PC_AddGlobalDefine

Function PC_AddGlobalDefine

codemp/botlib/l_precomp.cpp:1428–1439  ·  view source on GitHub ↗

end of the function PC_AddDefine ============================================================================ add a globals define that will be added to all opened sources Parameter: - Returns: - Changes Globals: - ============================================================================

Source from the content-addressed store, hash-verified

1426// Changes Globals: -
1427//============================================================================
1428int PC_AddGlobalDefine(char *string)
1429{
1430#if !DEFINEHASHING
1431 define_t *define;
1432
1433 define = PC_DefineFromString(string);
1434 if (!define) return qfalse;
1435 define->next = globaldefines;
1436 globaldefines = define;
1437#endif
1438 return qtrue;
1439} //end of the function PC_AddGlobalDefine
1440//============================================================================
1441// remove the given global define
1442//

Callers 1

PC_AddDefineFunction · 0.85

Calls 1

PC_DefineFromStringFunction · 0.85

Tested by

no test coverage detected