mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
devide fn
This commit is contained in:
parent
660c80ed53
commit
2e9ff11b74
@ -6,6 +6,17 @@
|
||||
#include "invoke.h"
|
||||
#include <stdarg.h>
|
||||
|
||||
void *getNewObjFunByClass(PikaObj *obj, char *classPath)
|
||||
{
|
||||
PikaObj *classLoader = args_getPtr(obj->attributeList, "__classLoader");
|
||||
if (NULL == classLoader)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
void *(*newObjFun)(Args * initArgs) = args_getPtr(classLoader->attributeList, classPath);
|
||||
return newObjFun;
|
||||
}
|
||||
|
||||
int32_t deinitEachSubObj(Arg *argEach, Args *handleArgs)
|
||||
{
|
||||
if (NULL != handleArgs)
|
||||
|
@ -5,16 +5,7 @@
|
||||
#include "dataStrs.h"
|
||||
#include <stdarg.h>
|
||||
|
||||
void *getNewObjFunByClass(PikaObj *obj, char *classPath)
|
||||
{
|
||||
PikaObj *classLoader = args_getPtr(obj->attributeList, "__classLoader");
|
||||
if (NULL == classLoader)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
void *(*newObjFun)(Args * initArgs) = args_getPtr(classLoader->attributeList, classPath);
|
||||
return newObjFun;
|
||||
}
|
||||
|
||||
|
||||
char *getDirectStr(Args *buffs, char *argPath)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user