2012-09-24 11:47:33 +08:00
|
|
|
#ifndef __COCOSJS_MANUAL_CONVERSIONS_H__
|
|
|
|
#define __COCOSJS_MANUAL_CONVERSIONS_H__
|
|
|
|
|
2012-09-21 08:09:40 +08:00
|
|
|
#include "chipmunk.h"
|
|
|
|
#include "cocos2d.h"
|
|
|
|
#include "js_manual_conversions.h"
|
|
|
|
|
2012-09-24 13:57:45 +08:00
|
|
|
//#ifdef __cplusplus
|
|
|
|
//extern "C" {
|
|
|
|
//#endif
|
2012-09-21 08:09:40 +08:00
|
|
|
|
|
|
|
JSBool jsval_to_CGPoint( JSContext *cx, jsval vp, cpVect *out );
|
|
|
|
jsval CGPoint_to_jsval( JSContext *cx, cpVect p );
|
2012-11-14 07:03:35 +08:00
|
|
|
|
2012-09-21 08:09:40 +08:00
|
|
|
|
2012-09-24 13:57:45 +08:00
|
|
|
//#ifdef __cplusplus
|
|
|
|
//}
|
|
|
|
//#endif
|
2012-09-21 08:09:40 +08:00
|
|
|
|
|
|
|
#define cpVect_to_jsval CGPoint_to_jsval
|
|
|
|
#define jsval_to_cpVect jsval_to_CGPoint
|
2012-09-24 11:47:33 +08:00
|
|
|
|
|
|
|
#endif /* __COCOSJS_MANUAL_CONVERSIONS_H__ */
|
|
|
|
|