0ad/source/scripting/ScriptGlue.h
janwas a69ac0dee9 - fix w4 warnings
- add convenience macros for config_db(CFG_GET_SYS_VAL)
- VFSUtil::EnumDirEnts now uses flags instead of bool recursive
- UNUSED() for params, UNUSED2 (<- need better name) for variables
- config.h defines must be tested with #if (always defined) -> allows
detecting misspellings thanks to compiler warnings
- replace debug_assert(0) with debug_warn (its sole purpose)
- replace ScriptingHost::ValueToInt et al with ToPrimitive
- use nommgr.h to disable both mmgr and VC debug heap

This was SVN commit r2585.
2005-08-09 15:55:44 +00:00

27 lines
596 B
C
Executable File

#ifndef _SCRIPTGLUE_H_
#define _SCRIPTGLUE_H_
#include "ScriptingHost.h"
#include "LightEnv.h" // required by g_LightEnv declaration below.
// referenced by ScriptingHost.cpp
extern JSFunctionSpec ScriptFunctionTable[];
extern JSPropertySpec ScriptGlobalTable[];
// dependencies (moved to header to avoid L4 warnings)
// .. from main.cpp:
extern "C" int fps;
extern void kill_mainloop();
extern CStr g_CursorName;
extern void StartGame();
extern void EndGame();
// .. other
extern CLightEnv g_LightEnv;
#if OS_WIN
extern int GetVRAMInfo(int&, int&);
#endif
#endif // #ifndef _SCRIPTGLUE_H_