devide fn

This commit is contained in:
lyon 2021-09-03 22:31:17 +08:00
parent 660c80ed53
commit 2e9ff11b74
2 changed files with 12 additions and 10 deletions

View File

@ -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)

View File

@ -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)
{