mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-19 06:43:58 -07:00
13 lines
338 B
C
13 lines
338 B
C
#define XP_WIN
|
|
|
|
#include <jsapi.h>
|
|
#include <jsatom.h>
|
|
#ifndef NDEBUG
|
|
# include <jsdbgapi.h>
|
|
#endif
|
|
|
|
// Make JS debugging a little easier by automatically naming GC roots
|
|
// Don't simply #define NAME_ALL_GC_ROOTS, because jsapi.h is horridly broken
|
|
#ifndef NDEBUG
|
|
# define JS_AddRoot(cx, rp) JS_AddNamedRoot((cx), (rp), __FILE__ )
|
|
#endif
|