push ctypes

This commit is contained in:
lyon1998 2022-04-16 11:38:47 +08:00
parent 2c4ec18e06
commit fc9267a832
2 changed files with 7 additions and 6 deletions

View File

@ -1,11 +1,12 @@
#include "ctypes_Test.h" #include "ctypes_Test.h"
#include "ctypes_cUint.h" #include "ctypes_c_uint.h"
#include "ctypes_cWcharP.h" #include "ctypes_c_wchar_p.h"
void ctypes_cUint___init__(PikaObj* self, int value) {
void ctypes_c_uint___init__(PikaObj *self, int value){
obj_setInt(self, "value", value); obj_setInt(self, "value", value);
} }
void ctypes_cWcharP___init__(PikaObj* self, char* value) { void ctypes_c_wchar_p___init__(PikaObj* self, char* value) {
obj_setStr(self, "value", value); obj_setStr(self, "value", value);
} }

View File

@ -1,10 +1,10 @@
from PikaObj import * from PikaObj import *
class cUint(TinyObj): class c_uint(TinyObj):
def __init__(self, value:int): def __init__(self, value:int):
pass pass
class cWcharP(TinyObj): class c_wchar_p(TinyObj):
def __init__(self, value:str): def __init__(self, value:str):
pass pass