mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
25 lines
733 B
C
25 lines
733 B
C
/* ******************************** */
|
|
/* Warning! Don't modify this file! */
|
|
/* ******************************** */
|
|
#include "PikaStdData_Utils.h"
|
|
#include "TinyObj.h"
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include "BaseObj.h"
|
|
|
|
void PikaStdData_Utils_int_to_bytesMethod(PikaObj *self, Args *args){
|
|
int val = args_getInt(args, "val");
|
|
Arg* res = PikaStdData_Utils_int_to_bytes(self, val);
|
|
method_returnArg(args, res);
|
|
}
|
|
|
|
PikaObj *New_PikaStdData_Utils(Args *args){
|
|
PikaObj *self = New_TinyObj(args);
|
|
class_defineMethod(self, "int_to_bytes(val:int)->bytes", PikaStdData_Utils_int_to_bytesMethod);
|
|
return self;
|
|
}
|
|
|
|
Arg *PikaStdData_Utils(PikaObj *self){
|
|
return obj_newObjInPackage(New_PikaStdData_Utils);
|
|
}
|