1
0
forked from 0ad/0ad
0ad/source/ps/scripting/JSInterface_Console.h
Ykkrosh 13f2e3ca0c Tried compiling with ICC9 on Linux, which raised various issues:
* Fixed some bugs with incorrect macro usage (SDL_BYTE_ORDER vs
SDL_BYTEORDER, {MSC,GCC}_VER vs {MSC,GCC}_VERSION, OS_WIN/OS_UNIX in
projects where they're not defined).
 * Removed some redundant declarations of g_Console.
 * Removed some unnecessary semicolons.
 * Removed some unused variables.
 * Added throw specification to operator new.

This was SVN commit r4698.
2006-12-16 01:01:15 +00:00

31 lines
684 B
C++

// JSInterface_Console.h
//
// The JavaScript wrapper around the console system
#include "scripting/ScriptingHost.h"
#ifndef JSI_CONSOLE_INCLUDED
#define JSI_CONSOLE_INCLUDED
namespace JSI_Console
{
enum
{
console_visible
};
extern JSClass JSI_class;
extern JSPropertySpec JSI_props[];
extern JSFunctionSpec JSI_methods[];
JSBool getProperty( JSContext* cx, JSObject* obj, jsval id, jsval* vp );
JSBool setProperty( JSContext* cx, JSObject* obj, jsval id, jsval* vp );
JSBool getConsole( JSContext* context, JSObject* obj, jsval id, jsval* vp );
void init();
JSBool writeConsole( JSContext* context, JSObject* obj, uint argc, jsval* argv, jsval* rval );
}
#endif