janwas
a69ac0dee9
- 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.
31 lines
685 B
C++
Executable File
31 lines
685 B
C++
Executable File
// 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
|