Mercurial > MadButterfly
changeset 1374:3eaf708b52c3
share xnjsmb_mb_rt_objs_mod for mbfly_njs.c and coord.cc
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Fri, 11 Mar 2011 11:01:48 +0800 |
parents | f02b39079ab0 |
children | 37dc1ce76bba |
files | nodejs/mbfly_njs.cc nodejs/mbfly_njs.h |
diffstat | 2 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/nodejs/mbfly_njs.cc Fri Mar 11 02:48:18 2011 +0800 +++ b/nodejs/mbfly_njs.cc Fri Mar 11 11:01:48 2011 +0800 @@ -33,8 +33,8 @@ return coord; } -static void -xnjsmb_mb_rt_objs_mod(Handle<Object> mbrt, Handle<Value> ret) { +void +_xnjsmb_mb_rt_objs_mod(Handle<Object> mbrt, Handle<Value> ret) { Handle<Object> ret_obj = ret->ToObject(); SET(ret_obj, "mbrt", mbrt);
--- a/nodejs/mbfly_njs.h Fri Mar 11 02:48:18 2011 +0800 +++ b/nodejs/mbfly_njs.h Fri Mar 11 11:01:48 2011 +0800 @@ -77,4 +77,8 @@ v8::Handle<v8::Value> export_xnjsmb_auto_subject_new(subject_t *subject); void xnjsmb_observer_init(void); +extern void _xnjsmb_mb_rt_objs_mod(v8::Handle<v8::Object> mbrt, + v8::Handle<v8::Value> ret); +#define xnjsmb_mb_rt_objs_mod _xnjsmb_mb_rt_objs_mod + #endif /* __MBFLY_NJS_H_ */