mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-13 20:14:51 +00:00
Adds the server-side part of the javascript debugger. Refs #410
This was SVN commit r13238.
This commit is contained in:
@@ -43,17 +43,12 @@ class AutoGCRooter;
|
||||
// TODO: what's a good default?
|
||||
#define DEFAULT_RUNTIME_SIZE 16 * 1024 * 1024
|
||||
|
||||
|
||||
#ifdef NDEBUG
|
||||
#define ENABLE_SCRIPT_PROFILING 0
|
||||
#else
|
||||
#define ENABLE_SCRIPT_PROFILING 1
|
||||
#endif
|
||||
|
||||
struct ScriptInterface_impl;
|
||||
|
||||
class ScriptRuntime;
|
||||
|
||||
class CDebuggingServer;
|
||||
|
||||
/**
|
||||
* Abstraction around a SpiderMonkey JSContext.
|
||||
*
|
||||
@@ -244,7 +239,7 @@ public:
|
||||
* Stringify to a JSON string, UTF-8 encoded. Returns an empty string on error.
|
||||
*/
|
||||
std::string StringifyJSON(jsval obj, bool indent = true);
|
||||
|
||||
|
||||
/**
|
||||
* Report the given error message through the JS error reporting mechanism,
|
||||
* and throw a JS exception. (Callers can check IsPendingException, and must
|
||||
|
||||
Reference in New Issue
Block a user