26 lines
661 B
C
Raw Normal View History

2021-09-08 21:25:52 +08:00
#include "PikaObj.h"
#include "dataArgs.h"
2021-09-10 17:49:56 +08:00
void method_returnStr(Args* args, char* val) {
args_setStr(args, "return", val);
2021-09-08 21:25:52 +08:00
}
2021-09-10 17:49:56 +08:00
void method_returnInt(Args* args, int32_t val) {
args_setInt(args, "return", val);
2021-09-08 21:25:52 +08:00
}
2021-09-10 17:49:56 +08:00
void method_returnFloat(Args* args, float val) {
args_setFloat(args, "return", val);
2021-09-08 21:25:52 +08:00
}
2021-09-10 17:49:56 +08:00
void method_returnPtr(Args* args, void* val) {
args_setPtr(args, "return", val);
2021-09-08 21:25:52 +08:00
}
2021-09-10 17:49:56 +08:00
int32_t method_getInt(Args* args, char* argName) {
return args_getInt(args, argName);
2021-09-08 21:25:52 +08:00
}
2021-09-10 17:49:56 +08:00
float method_getFloat(Args* args, char* argName) {
return args_getFloat(args, argName);
2021-09-08 21:25:52 +08:00
}
2021-09-10 17:49:56 +08:00
char* method_getStr(Args* args, char* argName) {
return args_getStr(args, argName);
2021-09-08 21:25:52 +08:00
}