2022-04-16 00:02:41 +08:00
|
|
|
#include "ctypes_Test.h"
|
2022-04-16 11:38:47 +08:00
|
|
|
#include "ctypes_c_uint.h"
|
|
|
|
#include "ctypes_c_wchar_p.h"
|
|
|
|
|
|
|
|
void ctypes_c_uint___init__(PikaObj *self, int value){
|
2022-04-16 00:02:41 +08:00
|
|
|
obj_setInt(self, "value", value);
|
|
|
|
}
|
|
|
|
|
2022-04-16 11:38:47 +08:00
|
|
|
void ctypes_c_wchar_p___init__(PikaObj* self, char* value) {
|
2022-04-16 00:02:41 +08:00
|
|
|
obj_setStr(self, "value", value);
|
|
|
|
}
|
|
|
|
|
|
|
|
int ctypes_Test_add(PikaObj* self, void* c_uint1, void* c_uint2) {
|
|
|
|
PikaObj* c_uint1_obj = c_uint1;
|
|
|
|
PikaObj* c_uint2_obj = c_uint2;
|
|
|
|
return obj_getInt(c_uint1_obj, "value") + obj_getInt(c_uint2_obj, "value");
|
|
|
|
}
|