Mercurial > MadButterfly
comparison nodejs/paints.cc @ 637:714cd6470bd9
Doc on xnjsmb_paints_init_mb_rt_temp()
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Mon, 26 Jul 2010 09:39:51 +0800 |
parents | cc39cf3f623c |
children | b346e4699e55 |
comparison
equal
deleted
inserted
replaced
636:cc39cf3f623c | 637:714cd6470bd9 |
---|---|
267 | 267 |
268 temp = FunctionTemplate::New(xnjsmb_paint_image_new); | 268 temp = FunctionTemplate::New(xnjsmb_paint_image_new); |
269 xnjsmb_paint_image_new_temp = Persistent<FunctionTemplate>::New(temp); | 269 xnjsmb_paint_image_new_temp = Persistent<FunctionTemplate>::New(temp); |
270 } | 270 } |
271 | 271 |
272 /*! \brief Initialize paints for mbfly. | |
273 * | |
274 * This function is called by init() in mbfly_njs.cc when the module | |
275 * being loaded. | |
276 */ | |
272 void xnjsmb_paints_init_mb_rt_temp(Handle<FunctionTemplate> rt_temp) { | 277 void xnjsmb_paints_init_mb_rt_temp(Handle<FunctionTemplate> rt_temp) { |
273 static int init_flag = 0; | 278 static int init_flag = 0; |
274 Handle<ObjectTemplate> rt_proto_temp; | 279 Handle<ObjectTemplate> rt_proto_temp; |
275 | 280 |
276 if(!init_flag) { | 281 if(!init_flag) { |