open source

This commit is contained in:
lvfulong
2020-11-11 16:17:13 +08:00
parent 4d989f3ecb
commit bc4ca748de
2441 changed files with 623057 additions and 2 deletions
+32
View File
@@ -0,0 +1,32 @@
/**
@file V8Util.h
@brief
@author James
@version 1.0
@date 2017_11_29
*/
#ifndef __V8Util_H__
#define __V8Util_H__
#include <v8.h>
/**
* @brief
*/
namespace laya
{
class V8Util
{
public:
static bool extractJSAB(v8::Local<v8::Value> jsval, char*& data, int& len);
static void SET_PROTOTYPE_METHOD(v8::Local<v8::FunctionTemplate> recv, const char* name, v8::FunctionCallback callback);
};
}
//------------------------------------------------------------------------------
#endif //__V8Util_H__
//-----------------------------END FILE--------------------------------