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.
24 lines
809 B
C++
Executable File
24 lines
809 B
C++
Executable File
// $Id$
|
|
|
|
#include "scripting/ScriptingHost.h"
|
|
|
|
#ifndef JSI_IGUIOBJECT_INCLUDED
|
|
#define JSI_IGUIOBJECT_INCLUDED
|
|
|
|
namespace JSI_IGUIObject
|
|
{
|
|
extern JSClass JSI_class;
|
|
extern JSPropertySpec JSI_props[];
|
|
extern JSFunctionSpec JSI_methods[];
|
|
JSBool addProperty(JSContext* cx, JSObject* obj, jsval id, jsval* vp);
|
|
JSBool delProperty(JSContext* cx, JSObject* obj, jsval id, jsval* vp);
|
|
JSBool getProperty(JSContext* cx, JSObject* obj, jsval id, jsval* vp);
|
|
JSBool setProperty(JSContext* cx, JSObject* obj, jsval id, jsval* vp);
|
|
JSBool construct(JSContext* cx, JSObject* obj, uint argc, jsval* argv, jsval* rval);
|
|
JSBool getByName(JSContext* cx, JSObject* obj, uint argc, jsval* argv, jsval* rval);
|
|
JSBool toString(JSContext* cx, JSObject* obj, uint argc, jsval* argv, jsval* rval);
|
|
void init();
|
|
}
|
|
|
|
#endif
|