mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
31 lines
709 B
C
31 lines
709 B
C
/*
|
|
Author: lyon
|
|
Tencent QQ: 645275593
|
|
*/
|
|
|
|
#include "PikaObj.h"
|
|
#include "dataArgs.h"
|
|
|
|
void method_returnStr(Args* args, char* val) {
|
|
args_setStr(args, "return", val);
|
|
}
|
|
void method_returnInt(Args* args, int32_t val) {
|
|
args_setInt(args, "return", val);
|
|
}
|
|
void method_returnFloat(Args* args, float val) {
|
|
args_setFloat(args, "return", val);
|
|
}
|
|
void method_returnPtr(Args* args, void* val) {
|
|
args_setPtr(args, "return", val);
|
|
}
|
|
|
|
int32_t method_getInt(Args* args, char* argName) {
|
|
return args_getInt(args, argName);
|
|
}
|
|
float method_getFloat(Args* args, char* argName) {
|
|
return args_getFloat(args, argName);
|
|
}
|
|
char* method_getStr(Args* args, char* argName) {
|
|
return args_getStr(args, argName);
|
|
}
|