2005-05-12 22:59:22 +02:00
|
|
|
#ifndef __RMGEN_H__
|
|
|
|
#define __RMGEN_H__
|
2005-05-12 07:16:59 +02:00
|
|
|
|
|
|
|
extern JSRuntime *rt;
|
|
|
|
extern JSContext *cx;
|
|
|
|
extern JSObject *global;
|
|
|
|
|
2005-05-16 09:30:39 +02:00
|
|
|
extern class Map* theMap; // ugly
|
|
|
|
|
2005-05-13 02:39:13 +02:00
|
|
|
// Utility functions
|
2005-05-12 07:16:59 +02:00
|
|
|
void Shutdown(int status);
|
|
|
|
char* ValToString(jsval val);
|
2005-05-13 02:39:13 +02:00
|
|
|
jsval NewJSString(const std::string& str);
|
2005-05-12 07:16:59 +02:00
|
|
|
|
2005-05-12 22:59:22 +02:00
|
|
|
#endif
|