mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
push ctypes
This commit is contained in:
parent
2c4ec18e06
commit
fc9267a832
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user