First commit
This commit is contained in:
107
hGameTest/bin/linux/obj/src/sys/FileSystem.cpp
Normal file
107
hGameTest/bin/linux/obj/src/sys/FileSystem.cpp
Normal file
@@ -0,0 +1,107 @@
|
||||
// Generated by Haxe 4.0.5
|
||||
#include <hxcpp.h>
|
||||
|
||||
#ifndef INCLUDED_haxe_io_Path
|
||||
#include <haxe/io/Path.h>
|
||||
#endif
|
||||
#ifndef INCLUDED_sys_FileSystem
|
||||
#include <sys/FileSystem.h>
|
||||
#endif
|
||||
|
||||
HX_LOCAL_STACK_FRAME(_hx_pos_b4db2871ee22ed2c_31_exists,"sys.FileSystem","exists",0xf55bed9e,"sys.FileSystem.exists","/usr/share/haxe/std/cpp/_std/sys/FileSystem.hx",31,0xcabeeced)
|
||||
namespace sys{
|
||||
|
||||
void FileSystem_obj::__construct() { }
|
||||
|
||||
Dynamic FileSystem_obj::__CreateEmpty() { return new FileSystem_obj; }
|
||||
|
||||
void *FileSystem_obj::_hx_vtable = 0;
|
||||
|
||||
Dynamic FileSystem_obj::__Create(hx::DynamicArray inArgs)
|
||||
{
|
||||
hx::ObjectPtr< FileSystem_obj > _hx_result = new FileSystem_obj();
|
||||
_hx_result->__construct();
|
||||
return _hx_result;
|
||||
}
|
||||
|
||||
bool FileSystem_obj::_hx_isInstanceOf(int inClassId) {
|
||||
return inClassId==(int)0x00000001 || inClassId==(int)0x284891f8;
|
||||
}
|
||||
|
||||
bool FileSystem_obj::exists(::String path){
|
||||
HX_STACKFRAME(&_hx_pos_b4db2871ee22ed2c_31_exists)
|
||||
HXDLIN( 31) ::String _hx_tmp;
|
||||
HXDLIN( 31) bool _hx_tmp1;
|
||||
HXDLIN( 31) if (hx::IsEq( path.charCodeAt(1),58 )) {
|
||||
HXDLIN( 31) _hx_tmp1 = (path.length <= 3);
|
||||
}
|
||||
else {
|
||||
HXDLIN( 31) _hx_tmp1 = false;
|
||||
}
|
||||
HXDLIN( 31) if (_hx_tmp1) {
|
||||
HXDLIN( 31) _hx_tmp = ::haxe::io::Path_obj::addTrailingSlash(path);
|
||||
}
|
||||
else {
|
||||
HXDLIN( 31) if ((path == HX_("/",2f,00,00,00))) {
|
||||
HXDLIN( 31) _hx_tmp = HX_("/",2f,00,00,00);
|
||||
}
|
||||
else {
|
||||
HXDLIN( 31) _hx_tmp = ::haxe::io::Path_obj::removeTrailingSlashes(path);
|
||||
}
|
||||
}
|
||||
HXDLIN( 31) return _hx_std_sys_exists(_hx_tmp);
|
||||
}
|
||||
|
||||
|
||||
STATIC_HX_DEFINE_DYNAMIC_FUNC1(FileSystem_obj,exists,return )
|
||||
|
||||
|
||||
FileSystem_obj::FileSystem_obj()
|
||||
{
|
||||
}
|
||||
|
||||
bool FileSystem_obj::__GetStatic(const ::String &inName, Dynamic &outValue, hx::PropertyAccess inCallProp)
|
||||
{
|
||||
switch(inName.length) {
|
||||
case 6:
|
||||
if (HX_FIELD_EQ(inName,"exists") ) { outValue = exists_dyn(); return true; }
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
#ifdef HXCPP_SCRIPTABLE
|
||||
static hx::StorageInfo *FileSystem_obj_sMemberStorageInfo = 0;
|
||||
static hx::StaticInfo *FileSystem_obj_sStaticStorageInfo = 0;
|
||||
#endif
|
||||
|
||||
hx::Class FileSystem_obj::__mClass;
|
||||
|
||||
static ::String FileSystem_obj_sStaticFields[] = {
|
||||
HX_("exists",dc,1d,e0,bf),
|
||||
::String(null())
|
||||
};
|
||||
|
||||
void FileSystem_obj::__register()
|
||||
{
|
||||
FileSystem_obj _hx_dummy;
|
||||
FileSystem_obj::_hx_vtable = *(void **)&_hx_dummy;
|
||||
hx::Static(__mClass) = new hx::Class_obj();
|
||||
__mClass->mName = HX_("sys.FileSystem",6c,2c,e5,e6);
|
||||
__mClass->mSuper = &super::__SGetClass();
|
||||
__mClass->mConstructEmpty = &__CreateEmpty;
|
||||
__mClass->mConstructArgs = &__Create;
|
||||
__mClass->mGetStaticField = &FileSystem_obj::__GetStatic;
|
||||
__mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
|
||||
__mClass->mStatics = hx::Class_obj::dupFunctions(FileSystem_obj_sStaticFields);
|
||||
__mClass->mMembers = hx::Class_obj::dupFunctions(0 /* sMemberFields */);
|
||||
__mClass->mCanCast = hx::TCanCast< FileSystem_obj >;
|
||||
#ifdef HXCPP_SCRIPTABLE
|
||||
__mClass->mMemberStorageInfo = FileSystem_obj_sMemberStorageInfo;
|
||||
#endif
|
||||
#ifdef HXCPP_SCRIPTABLE
|
||||
__mClass->mStaticStorageInfo = FileSystem_obj_sStaticStorageInfo;
|
||||
#endif
|
||||
hx::_hx_RegisterClass(__mClass->mName, __mClass);
|
||||
}
|
||||
|
||||
} // end namespace sys
|
||||
101
hGameTest/bin/linux/obj/src/sys/io/File.cpp
Normal file
101
hGameTest/bin/linux/obj/src/sys/io/File.cpp
Normal file
@@ -0,0 +1,101 @@
|
||||
// Generated by Haxe 4.0.5
|
||||
#include <hxcpp.h>
|
||||
|
||||
#ifndef INCLUDED_haxe_io_Input
|
||||
#include <haxe/io/Input.h>
|
||||
#endif
|
||||
#ifndef INCLUDED_sys_io_File
|
||||
#include <sys/io/File.h>
|
||||
#endif
|
||||
#ifndef INCLUDED_sys_io_FileInput
|
||||
#include <sys/io/FileInput.h>
|
||||
#endif
|
||||
|
||||
HX_LOCAL_STACK_FRAME(_hx_pos_8a637e7fc3b98e6a_51_read,"sys.io.File","read",0x203d07e1,"sys.io.File.read","/usr/share/haxe/std/cpp/_std/sys/io/File.hx",51,0xa9f746ff)
|
||||
namespace sys{
|
||||
namespace io{
|
||||
|
||||
void File_obj::__construct() { }
|
||||
|
||||
Dynamic File_obj::__CreateEmpty() { return new File_obj; }
|
||||
|
||||
void *File_obj::_hx_vtable = 0;
|
||||
|
||||
Dynamic File_obj::__Create(hx::DynamicArray inArgs)
|
||||
{
|
||||
hx::ObjectPtr< File_obj > _hx_result = new File_obj();
|
||||
_hx_result->__construct();
|
||||
return _hx_result;
|
||||
}
|
||||
|
||||
bool File_obj::_hx_isInstanceOf(int inClassId) {
|
||||
return inClassId==(int)0x00000001 || inClassId==(int)0x01dc4e07;
|
||||
}
|
||||
|
||||
::sys::io::FileInput File_obj::read(::String path,hx::Null< bool > __o_binary){
|
||||
bool binary = __o_binary.Default(true);
|
||||
HX_GC_STACKFRAME(&_hx_pos_8a637e7fc3b98e6a_51_read)
|
||||
HXDLIN( 51) ::String _hx_tmp;
|
||||
HXDLIN( 51) if (binary) {
|
||||
HXDLIN( 51) _hx_tmp = HX_("rb",b0,63,00,00);
|
||||
}
|
||||
else {
|
||||
HXDLIN( 51) _hx_tmp = HX_("r",72,00,00,00);
|
||||
}
|
||||
HXDLIN( 51) return ::sys::io::FileInput_obj::__alloc( HX_CTX ,_hx_std_file_open(path,_hx_tmp));
|
||||
}
|
||||
|
||||
|
||||
STATIC_HX_DEFINE_DYNAMIC_FUNC2(File_obj,read,return )
|
||||
|
||||
|
||||
File_obj::File_obj()
|
||||
{
|
||||
}
|
||||
|
||||
bool File_obj::__GetStatic(const ::String &inName, Dynamic &outValue, hx::PropertyAccess inCallProp)
|
||||
{
|
||||
switch(inName.length) {
|
||||
case 4:
|
||||
if (HX_FIELD_EQ(inName,"read") ) { outValue = read_dyn(); return true; }
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
#ifdef HXCPP_SCRIPTABLE
|
||||
static hx::StorageInfo *File_obj_sMemberStorageInfo = 0;
|
||||
static hx::StaticInfo *File_obj_sStaticStorageInfo = 0;
|
||||
#endif
|
||||
|
||||
hx::Class File_obj::__mClass;
|
||||
|
||||
static ::String File_obj_sStaticFields[] = {
|
||||
HX_("read",56,4b,a7,4b),
|
||||
::String(null())
|
||||
};
|
||||
|
||||
void File_obj::__register()
|
||||
{
|
||||
File_obj _hx_dummy;
|
||||
File_obj::_hx_vtable = *(void **)&_hx_dummy;
|
||||
hx::Static(__mClass) = new hx::Class_obj();
|
||||
__mClass->mName = HX_("sys.io.File",c3,ef,8d,eb);
|
||||
__mClass->mSuper = &super::__SGetClass();
|
||||
__mClass->mConstructEmpty = &__CreateEmpty;
|
||||
__mClass->mConstructArgs = &__Create;
|
||||
__mClass->mGetStaticField = &File_obj::__GetStatic;
|
||||
__mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
|
||||
__mClass->mStatics = hx::Class_obj::dupFunctions(File_obj_sStaticFields);
|
||||
__mClass->mMembers = hx::Class_obj::dupFunctions(0 /* sMemberFields */);
|
||||
__mClass->mCanCast = hx::TCanCast< File_obj >;
|
||||
#ifdef HXCPP_SCRIPTABLE
|
||||
__mClass->mMemberStorageInfo = File_obj_sMemberStorageInfo;
|
||||
#endif
|
||||
#ifdef HXCPP_SCRIPTABLE
|
||||
__mClass->mStaticStorageInfo = File_obj_sStaticStorageInfo;
|
||||
#endif
|
||||
hx::_hx_RegisterClass(__mClass->mName, __mClass);
|
||||
}
|
||||
|
||||
} // end namespace sys
|
||||
} // end namespace io
|
||||
210
hGameTest/bin/linux/obj/src/sys/io/FileInput.cpp
Normal file
210
hGameTest/bin/linux/obj/src/sys/io/FileInput.cpp
Normal file
@@ -0,0 +1,210 @@
|
||||
// Generated by Haxe 4.0.5
|
||||
#include <hxcpp.h>
|
||||
|
||||
#ifndef INCLUDED_haxe_io_Bytes
|
||||
#include <haxe/io/Bytes.h>
|
||||
#endif
|
||||
#ifndef INCLUDED_haxe_io_Eof
|
||||
#include <haxe/io/Eof.h>
|
||||
#endif
|
||||
#ifndef INCLUDED_haxe_io_Error
|
||||
#include <haxe/io/Error.h>
|
||||
#endif
|
||||
#ifndef INCLUDED_haxe_io_Input
|
||||
#include <haxe/io/Input.h>
|
||||
#endif
|
||||
#ifndef INCLUDED_sys_io_FileInput
|
||||
#include <sys/io/FileInput.h>
|
||||
#endif
|
||||
|
||||
HX_DEFINE_STACK_FRAME(_hx_pos_b846ebd5a0a404e5_33_new,"sys.io.FileInput","new",0x565591b9,"sys.io.FileInput.new","/usr/share/haxe/std/cpp/_std/sys/io/FileInput.hx",33,0x4095cd33)
|
||||
HX_LOCAL_STACK_FRAME(_hx_pos_b846ebd5a0a404e5_37_readByte,"sys.io.FileInput","readByte",0x25e0b585,"sys.io.FileInput.readByte","/usr/share/haxe/std/cpp/_std/sys/io/FileInput.hx",37,0x4095cd33)
|
||||
HX_LOCAL_STACK_FRAME(_hx_pos_b846ebd5a0a404e5_48_readBytes,"sys.io.FileInput","readBytes",0xfebe1f4e,"sys.io.FileInput.readBytes","/usr/share/haxe/std/cpp/_std/sys/io/FileInput.hx",48,0x4095cd33)
|
||||
HX_LOCAL_STACK_FRAME(_hx_pos_b846ebd5a0a404e5_58_close,"sys.io.FileInput","close",0x735aa151,"sys.io.FileInput.close","/usr/share/haxe/std/cpp/_std/sys/io/FileInput.hx",58,0x4095cd33)
|
||||
namespace sys{
|
||||
namespace io{
|
||||
|
||||
void FileInput_obj::__construct( ::Dynamic f){
|
||||
HX_STACKFRAME(&_hx_pos_b846ebd5a0a404e5_33_new)
|
||||
HXDLIN( 33) this->_hx___f = f;
|
||||
}
|
||||
|
||||
Dynamic FileInput_obj::__CreateEmpty() { return new FileInput_obj; }
|
||||
|
||||
void *FileInput_obj::_hx_vtable = 0;
|
||||
|
||||
Dynamic FileInput_obj::__Create(hx::DynamicArray inArgs)
|
||||
{
|
||||
hx::ObjectPtr< FileInput_obj > _hx_result = new FileInput_obj();
|
||||
_hx_result->__construct(inArgs[0]);
|
||||
return _hx_result;
|
||||
}
|
||||
|
||||
bool FileInput_obj::_hx_isInstanceOf(int inClassId) {
|
||||
if (inClassId<=(int)0x5c18cd32) {
|
||||
return inClassId==(int)0x00000001 || inClassId==(int)0x5c18cd32;
|
||||
} else {
|
||||
return inClassId==(int)0x7d72f7a3;
|
||||
}
|
||||
}
|
||||
|
||||
int FileInput_obj::readByte(){
|
||||
HX_GC_STACKFRAME(&_hx_pos_b846ebd5a0a404e5_37_readByte)
|
||||
HXDLIN( 37) try {
|
||||
HX_STACK_CATCHABLE( ::Dynamic, 0);
|
||||
HXLINE( 38) return _hx_std_file_read_char(this->_hx___f);
|
||||
} catch( ::Dynamic _hx_e) {
|
||||
if (_hx_e.IsClass< ::Dynamic >() ){
|
||||
HX_STACK_BEGIN_CATCH
|
||||
::Dynamic e = _hx_e;
|
||||
HXLINE( 40) if (( (bool)(e->__IsArray()) )) {
|
||||
HXLINE( 41) HX_STACK_DO_THROW( ::haxe::io::Eof_obj::__alloc( HX_CTX ));
|
||||
}
|
||||
else {
|
||||
HXLINE( 43) HX_STACK_DO_THROW(::haxe::io::Error_obj::Custom(e));
|
||||
}
|
||||
}
|
||||
else {
|
||||
HX_STACK_DO_THROW(_hx_e);
|
||||
}
|
||||
}
|
||||
HXLINE( 37) return 0;
|
||||
}
|
||||
|
||||
|
||||
int FileInput_obj::readBytes( ::haxe::io::Bytes s,int p,int l){
|
||||
HX_GC_STACKFRAME(&_hx_pos_b846ebd5a0a404e5_48_readBytes)
|
||||
HXDLIN( 48) try {
|
||||
HX_STACK_CATCHABLE( ::Dynamic, 0);
|
||||
HXLINE( 49) return _hx_std_file_read(this->_hx___f,s->b,p,l);
|
||||
} catch( ::Dynamic _hx_e) {
|
||||
if (_hx_e.IsClass< ::Dynamic >() ){
|
||||
HX_STACK_BEGIN_CATCH
|
||||
::Dynamic e = _hx_e;
|
||||
HXLINE( 51) if (( (bool)(e->__IsArray()) )) {
|
||||
HXLINE( 52) HX_STACK_DO_THROW( ::haxe::io::Eof_obj::__alloc( HX_CTX ));
|
||||
}
|
||||
else {
|
||||
HXLINE( 54) HX_STACK_DO_THROW(::haxe::io::Error_obj::Custom(e));
|
||||
}
|
||||
}
|
||||
else {
|
||||
HX_STACK_DO_THROW(_hx_e);
|
||||
}
|
||||
}
|
||||
HXLINE( 48) return 0;
|
||||
}
|
||||
|
||||
|
||||
void FileInput_obj::close(){
|
||||
HX_STACKFRAME(&_hx_pos_b846ebd5a0a404e5_58_close)
|
||||
HXLINE( 59) this->super::close();
|
||||
HXLINE( 60) _hx_std_file_close(this->_hx___f);
|
||||
}
|
||||
|
||||
|
||||
|
||||
hx::ObjectPtr< FileInput_obj > FileInput_obj::__new( ::Dynamic f) {
|
||||
hx::ObjectPtr< FileInput_obj > __this = new FileInput_obj();
|
||||
__this->__construct(f);
|
||||
return __this;
|
||||
}
|
||||
|
||||
hx::ObjectPtr< FileInput_obj > FileInput_obj::__alloc(hx::Ctx *_hx_ctx, ::Dynamic f) {
|
||||
FileInput_obj *__this = (FileInput_obj*)(hx::Ctx::alloc(_hx_ctx, sizeof(FileInput_obj), true, "sys.io.FileInput"));
|
||||
*(void **)__this = FileInput_obj::_hx_vtable;
|
||||
__this->__construct(f);
|
||||
return __this;
|
||||
}
|
||||
|
||||
FileInput_obj::FileInput_obj()
|
||||
{
|
||||
}
|
||||
|
||||
void FileInput_obj::__Mark(HX_MARK_PARAMS)
|
||||
{
|
||||
HX_MARK_BEGIN_CLASS(FileInput);
|
||||
HX_MARK_MEMBER_NAME(_hx___f,"__f");
|
||||
HX_MARK_END_CLASS();
|
||||
}
|
||||
|
||||
void FileInput_obj::__Visit(HX_VISIT_PARAMS)
|
||||
{
|
||||
HX_VISIT_MEMBER_NAME(_hx___f,"__f");
|
||||
}
|
||||
|
||||
hx::Val FileInput_obj::__Field(const ::String &inName,hx::PropertyAccess inCallProp)
|
||||
{
|
||||
switch(inName.length) {
|
||||
case 3:
|
||||
if (HX_FIELD_EQ(inName,"__f") ) { return hx::Val( _hx___f ); }
|
||||
break;
|
||||
case 5:
|
||||
if (HX_FIELD_EQ(inName,"close") ) { return hx::Val( close_dyn() ); }
|
||||
break;
|
||||
case 8:
|
||||
if (HX_FIELD_EQ(inName,"readByte") ) { return hx::Val( readByte_dyn() ); }
|
||||
break;
|
||||
case 9:
|
||||
if (HX_FIELD_EQ(inName,"readBytes") ) { return hx::Val( readBytes_dyn() ); }
|
||||
}
|
||||
return super::__Field(inName,inCallProp);
|
||||
}
|
||||
|
||||
hx::Val FileInput_obj::__SetField(const ::String &inName,const hx::Val &inValue,hx::PropertyAccess inCallProp)
|
||||
{
|
||||
switch(inName.length) {
|
||||
case 3:
|
||||
if (HX_FIELD_EQ(inName,"__f") ) { _hx___f=inValue.Cast< ::Dynamic >(); return inValue; }
|
||||
}
|
||||
return super::__SetField(inName,inValue,inCallProp);
|
||||
}
|
||||
|
||||
void FileInput_obj::__GetFields(Array< ::String> &outFields)
|
||||
{
|
||||
outFields->push(HX_("__f",46,69,48,00));
|
||||
super::__GetFields(outFields);
|
||||
};
|
||||
|
||||
#ifdef HXCPP_SCRIPTABLE
|
||||
static hx::StorageInfo FileInput_obj_sMemberStorageInfo[] = {
|
||||
{hx::fsObject /* ::Dynamic */ ,(int)offsetof(FileInput_obj,_hx___f),HX_("__f",46,69,48,00)},
|
||||
{ hx::fsUnknown, 0, null()}
|
||||
};
|
||||
static hx::StaticInfo *FileInput_obj_sStaticStorageInfo = 0;
|
||||
#endif
|
||||
|
||||
static ::String FileInput_obj_sMemberFields[] = {
|
||||
HX_("__f",46,69,48,00),
|
||||
HX_("readByte",7e,f9,1a,69),
|
||||
HX_("readBytes",35,55,7f,8e),
|
||||
HX_("close",b8,17,63,48),
|
||||
::String(null()) };
|
||||
|
||||
hx::Class FileInput_obj::__mClass;
|
||||
|
||||
void FileInput_obj::__register()
|
||||
{
|
||||
FileInput_obj _hx_dummy;
|
||||
FileInput_obj::_hx_vtable = *(void **)&_hx_dummy;
|
||||
hx::Static(__mClass) = new hx::Class_obj();
|
||||
__mClass->mName = HX_("sys.io.FileInput",47,41,72,a9);
|
||||
__mClass->mSuper = &super::__SGetClass();
|
||||
__mClass->mConstructEmpty = &__CreateEmpty;
|
||||
__mClass->mConstructArgs = &__Create;
|
||||
__mClass->mGetStaticField = &hx::Class_obj::GetNoStaticField;
|
||||
__mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
|
||||
__mClass->mStatics = hx::Class_obj::dupFunctions(0 /* sStaticFields */);
|
||||
__mClass->mMembers = hx::Class_obj::dupFunctions(FileInput_obj_sMemberFields);
|
||||
__mClass->mCanCast = hx::TCanCast< FileInput_obj >;
|
||||
#ifdef HXCPP_SCRIPTABLE
|
||||
__mClass->mMemberStorageInfo = FileInput_obj_sMemberStorageInfo;
|
||||
#endif
|
||||
#ifdef HXCPP_SCRIPTABLE
|
||||
__mClass->mStaticStorageInfo = FileInput_obj_sStaticStorageInfo;
|
||||
#endif
|
||||
hx::_hx_RegisterClass(__mClass->mName, __mClass);
|
||||
}
|
||||
|
||||
} // end namespace sys
|
||||
} // end namespace io
|
||||
196
hGameTest/bin/linux/obj/src/sys/io/Process.cpp
Normal file
196
hGameTest/bin/linux/obj/src/sys/io/Process.cpp
Normal file
@@ -0,0 +1,196 @@
|
||||
// Generated by Haxe 4.0.5
|
||||
#include <hxcpp.h>
|
||||
|
||||
#ifndef INCLUDED_haxe_io_Input
|
||||
#include <haxe/io/Input.h>
|
||||
#endif
|
||||
#ifndef INCLUDED_haxe_io_Output
|
||||
#include <haxe/io/Output.h>
|
||||
#endif
|
||||
#ifndef INCLUDED_sys_io_Process
|
||||
#include <sys/io/Process.h>
|
||||
#endif
|
||||
#ifndef INCLUDED_sys_io__Process_Stdin
|
||||
#include <sys/io/_Process/Stdin.h>
|
||||
#endif
|
||||
#ifndef INCLUDED_sys_io__Process_Stdout
|
||||
#include <sys/io/_Process/Stdout.h>
|
||||
#endif
|
||||
|
||||
HX_DEFINE_STACK_FRAME(_hx_pos_90f6f206b294b77b_94_new,"sys.io.Process","new",0x849b4c7a,"sys.io.Process.new","/usr/share/haxe/std/cpp/_std/sys/io/Process.hx",94,0x2d961692)
|
||||
HX_LOCAL_STACK_FRAME(_hx_pos_90f6f206b294b77b_114_close,"sys.io.Process","close",0x0a954e52,"sys.io.Process.close","/usr/share/haxe/std/cpp/_std/sys/io/Process.hx",114,0x2d961692)
|
||||
namespace sys{
|
||||
namespace io{
|
||||
|
||||
void Process_obj::__construct(::String cmd,::Array< ::String > args, ::Dynamic detached){
|
||||
HX_GC_STACKFRAME(&_hx_pos_90f6f206b294b77b_94_new)
|
||||
HXLINE( 95) if (( (bool)(detached) )) {
|
||||
HXLINE( 96) HX_STACK_DO_THROW(HX_("Detached process is not supported on this platform",8a,a6,56,0e));
|
||||
}
|
||||
HXLINE( 97) ::Dynamic _hx_tmp;
|
||||
HXDLIN( 97) try {
|
||||
HX_STACK_CATCHABLE( ::Dynamic, 0);
|
||||
HXLINE( 97) _hx_tmp = _hx_std_process_run(cmd,args);
|
||||
} catch( ::Dynamic _hx_e) {
|
||||
if (_hx_e.IsClass< ::Dynamic >() ){
|
||||
HX_STACK_BEGIN_CATCH
|
||||
::Dynamic e = _hx_e;
|
||||
HXLINE( 97) HX_STACK_DO_THROW((HX_("Process creation failure : ",cc,fa,44,a5) + cmd));
|
||||
}
|
||||
else {
|
||||
HX_STACK_DO_THROW(_hx_e);
|
||||
}
|
||||
}
|
||||
HXDLIN( 97) this->p = _hx_tmp;
|
||||
HXLINE( 98) this->_hx_stdin = ::sys::io::_Process::Stdin_obj::__alloc( HX_CTX ,this->p);
|
||||
HXLINE( 99) this->_hx_stdout = ::sys::io::_Process::Stdout_obj::__alloc( HX_CTX ,this->p,true);
|
||||
HXLINE( 100) this->_hx_stderr = ::sys::io::_Process::Stdout_obj::__alloc( HX_CTX ,this->p,false);
|
||||
}
|
||||
|
||||
Dynamic Process_obj::__CreateEmpty() { return new Process_obj; }
|
||||
|
||||
void *Process_obj::_hx_vtable = 0;
|
||||
|
||||
Dynamic Process_obj::__Create(hx::DynamicArray inArgs)
|
||||
{
|
||||
hx::ObjectPtr< Process_obj > _hx_result = new Process_obj();
|
||||
_hx_result->__construct(inArgs[0],inArgs[1],inArgs[2]);
|
||||
return _hx_result;
|
||||
}
|
||||
|
||||
bool Process_obj::_hx_isInstanceOf(int inClassId) {
|
||||
return inClassId==(int)0x00000001 || inClassId==(int)0x15242bc4;
|
||||
}
|
||||
|
||||
void Process_obj::close(){
|
||||
HX_STACKFRAME(&_hx_pos_90f6f206b294b77b_114_close)
|
||||
HXDLIN( 114) _hx_std_process_close(this->p);
|
||||
}
|
||||
|
||||
|
||||
HX_DEFINE_DYNAMIC_FUNC0(Process_obj,close,(void))
|
||||
|
||||
|
||||
hx::ObjectPtr< Process_obj > Process_obj::__new(::String cmd,::Array< ::String > args, ::Dynamic detached) {
|
||||
hx::ObjectPtr< Process_obj > __this = new Process_obj();
|
||||
__this->__construct(cmd,args,detached);
|
||||
return __this;
|
||||
}
|
||||
|
||||
hx::ObjectPtr< Process_obj > Process_obj::__alloc(hx::Ctx *_hx_ctx,::String cmd,::Array< ::String > args, ::Dynamic detached) {
|
||||
Process_obj *__this = (Process_obj*)(hx::Ctx::alloc(_hx_ctx, sizeof(Process_obj), true, "sys.io.Process"));
|
||||
*(void **)__this = Process_obj::_hx_vtable;
|
||||
__this->__construct(cmd,args,detached);
|
||||
return __this;
|
||||
}
|
||||
|
||||
Process_obj::Process_obj()
|
||||
{
|
||||
}
|
||||
|
||||
void Process_obj::__Mark(HX_MARK_PARAMS)
|
||||
{
|
||||
HX_MARK_BEGIN_CLASS(Process);
|
||||
HX_MARK_MEMBER_NAME(p,"p");
|
||||
HX_MARK_MEMBER_NAME(_hx_stdout,"stdout");
|
||||
HX_MARK_MEMBER_NAME(_hx_stderr,"stderr");
|
||||
HX_MARK_MEMBER_NAME(_hx_stdin,"stdin");
|
||||
HX_MARK_END_CLASS();
|
||||
}
|
||||
|
||||
void Process_obj::__Visit(HX_VISIT_PARAMS)
|
||||
{
|
||||
HX_VISIT_MEMBER_NAME(p,"p");
|
||||
HX_VISIT_MEMBER_NAME(_hx_stdout,"stdout");
|
||||
HX_VISIT_MEMBER_NAME(_hx_stderr,"stderr");
|
||||
HX_VISIT_MEMBER_NAME(_hx_stdin,"stdin");
|
||||
}
|
||||
|
||||
hx::Val Process_obj::__Field(const ::String &inName,hx::PropertyAccess inCallProp)
|
||||
{
|
||||
switch(inName.length) {
|
||||
case 1:
|
||||
if (HX_FIELD_EQ(inName,"p") ) { return hx::Val( p ); }
|
||||
break;
|
||||
case 5:
|
||||
if (HX_FIELD_EQ(inName,"stdin") ) { return hx::Val( _hx_stdin ); }
|
||||
if (HX_FIELD_EQ(inName,"close") ) { return hx::Val( close_dyn() ); }
|
||||
break;
|
||||
case 6:
|
||||
if (HX_FIELD_EQ(inName,"stdout") ) { return hx::Val( _hx_stdout ); }
|
||||
if (HX_FIELD_EQ(inName,"stderr") ) { return hx::Val( _hx_stderr ); }
|
||||
}
|
||||
return super::__Field(inName,inCallProp);
|
||||
}
|
||||
|
||||
hx::Val Process_obj::__SetField(const ::String &inName,const hx::Val &inValue,hx::PropertyAccess inCallProp)
|
||||
{
|
||||
switch(inName.length) {
|
||||
case 1:
|
||||
if (HX_FIELD_EQ(inName,"p") ) { p=inValue.Cast< ::Dynamic >(); return inValue; }
|
||||
break;
|
||||
case 5:
|
||||
if (HX_FIELD_EQ(inName,"stdin") ) { _hx_stdin=inValue.Cast< ::haxe::io::Output >(); return inValue; }
|
||||
break;
|
||||
case 6:
|
||||
if (HX_FIELD_EQ(inName,"stdout") ) { _hx_stdout=inValue.Cast< ::haxe::io::Input >(); return inValue; }
|
||||
if (HX_FIELD_EQ(inName,"stderr") ) { _hx_stderr=inValue.Cast< ::haxe::io::Input >(); return inValue; }
|
||||
}
|
||||
return super::__SetField(inName,inValue,inCallProp);
|
||||
}
|
||||
|
||||
void Process_obj::__GetFields(Array< ::String> &outFields)
|
||||
{
|
||||
outFields->push(HX_("p",70,00,00,00));
|
||||
outFields->push(HX_("stdout",cb,bf,f3,07));
|
||||
outFields->push(HX_("stderr",a2,26,ec,07));
|
||||
outFields->push(HX_("stdin",48,b3,0d,84));
|
||||
super::__GetFields(outFields);
|
||||
};
|
||||
|
||||
#ifdef HXCPP_SCRIPTABLE
|
||||
static hx::StorageInfo Process_obj_sMemberStorageInfo[] = {
|
||||
{hx::fsObject /* ::Dynamic */ ,(int)offsetof(Process_obj,p),HX_("p",70,00,00,00)},
|
||||
{hx::fsObject /* ::haxe::io::Input */ ,(int)offsetof(Process_obj,_hx_stdout),HX_("stdout",cb,bf,f3,07)},
|
||||
{hx::fsObject /* ::haxe::io::Input */ ,(int)offsetof(Process_obj,_hx_stderr),HX_("stderr",a2,26,ec,07)},
|
||||
{hx::fsObject /* ::haxe::io::Output */ ,(int)offsetof(Process_obj,_hx_stdin),HX_("stdin",48,b3,0d,84)},
|
||||
{ hx::fsUnknown, 0, null()}
|
||||
};
|
||||
static hx::StaticInfo *Process_obj_sStaticStorageInfo = 0;
|
||||
#endif
|
||||
|
||||
static ::String Process_obj_sMemberFields[] = {
|
||||
HX_("p",70,00,00,00),
|
||||
HX_("stdout",cb,bf,f3,07),
|
||||
HX_("stderr",a2,26,ec,07),
|
||||
HX_("stdin",48,b3,0d,84),
|
||||
HX_("close",b8,17,63,48),
|
||||
::String(null()) };
|
||||
|
||||
hx::Class Process_obj::__mClass;
|
||||
|
||||
void Process_obj::__register()
|
||||
{
|
||||
Process_obj _hx_dummy;
|
||||
Process_obj::_hx_vtable = *(void **)&_hx_dummy;
|
||||
hx::Static(__mClass) = new hx::Class_obj();
|
||||
__mClass->mName = HX_("sys.io.Process",88,47,b1,77);
|
||||
__mClass->mSuper = &super::__SGetClass();
|
||||
__mClass->mConstructEmpty = &__CreateEmpty;
|
||||
__mClass->mConstructArgs = &__Create;
|
||||
__mClass->mGetStaticField = &hx::Class_obj::GetNoStaticField;
|
||||
__mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
|
||||
__mClass->mStatics = hx::Class_obj::dupFunctions(0 /* sStaticFields */);
|
||||
__mClass->mMembers = hx::Class_obj::dupFunctions(Process_obj_sMemberFields);
|
||||
__mClass->mCanCast = hx::TCanCast< Process_obj >;
|
||||
#ifdef HXCPP_SCRIPTABLE
|
||||
__mClass->mMemberStorageInfo = Process_obj_sMemberStorageInfo;
|
||||
#endif
|
||||
#ifdef HXCPP_SCRIPTABLE
|
||||
__mClass->mStaticStorageInfo = Process_obj_sStaticStorageInfo;
|
||||
#endif
|
||||
hx::_hx_RegisterClass(__mClass->mName, __mClass);
|
||||
}
|
||||
|
||||
} // end namespace sys
|
||||
} // end namespace io
|
||||
148
hGameTest/bin/linux/obj/src/sys/io/_Process/Stdin.cpp
Normal file
148
hGameTest/bin/linux/obj/src/sys/io/_Process/Stdin.cpp
Normal file
@@ -0,0 +1,148 @@
|
||||
// Generated by Haxe 4.0.5
|
||||
#include <hxcpp.h>
|
||||
|
||||
#ifndef INCLUDED_haxe_io_Bytes
|
||||
#include <haxe/io/Bytes.h>
|
||||
#endif
|
||||
#ifndef INCLUDED_haxe_io_Output
|
||||
#include <haxe/io/Output.h>
|
||||
#endif
|
||||
#ifndef INCLUDED_sys_io__Process_Stdin
|
||||
#include <sys/io/_Process/Stdin.h>
|
||||
#endif
|
||||
|
||||
HX_DEFINE_STACK_FRAME(_hx_pos_c7a66aa1623b080e_31_new,"sys.io._Process.Stdin","new",0xd3131563,"sys.io._Process.Stdin.new","/usr/share/haxe/std/cpp/_std/sys/io/Process.hx",31,0x2d961692)
|
||||
namespace sys{
|
||||
namespace io{
|
||||
namespace _Process{
|
||||
|
||||
void Stdin_obj::__construct( ::Dynamic p){
|
||||
HX_STACKFRAME(&_hx_pos_c7a66aa1623b080e_31_new)
|
||||
HXLINE( 32) this->p = p;
|
||||
HXLINE( 33) this->buf = ::haxe::io::Bytes_obj::alloc(1);
|
||||
}
|
||||
|
||||
Dynamic Stdin_obj::__CreateEmpty() { return new Stdin_obj; }
|
||||
|
||||
void *Stdin_obj::_hx_vtable = 0;
|
||||
|
||||
Dynamic Stdin_obj::__Create(hx::DynamicArray inArgs)
|
||||
{
|
||||
hx::ObjectPtr< Stdin_obj > _hx_result = new Stdin_obj();
|
||||
_hx_result->__construct(inArgs[0]);
|
||||
return _hx_result;
|
||||
}
|
||||
|
||||
bool Stdin_obj::_hx_isInstanceOf(int inClassId) {
|
||||
if (inClassId<=(int)0x3473efad) {
|
||||
return inClassId==(int)0x00000001 || inClassId==(int)0x3473efad;
|
||||
} else {
|
||||
return inClassId==(int)0x7e8e3445;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
hx::ObjectPtr< Stdin_obj > Stdin_obj::__new( ::Dynamic p) {
|
||||
hx::ObjectPtr< Stdin_obj > __this = new Stdin_obj();
|
||||
__this->__construct(p);
|
||||
return __this;
|
||||
}
|
||||
|
||||
hx::ObjectPtr< Stdin_obj > Stdin_obj::__alloc(hx::Ctx *_hx_ctx, ::Dynamic p) {
|
||||
Stdin_obj *__this = (Stdin_obj*)(hx::Ctx::alloc(_hx_ctx, sizeof(Stdin_obj), true, "sys.io._Process.Stdin"));
|
||||
*(void **)__this = Stdin_obj::_hx_vtable;
|
||||
__this->__construct(p);
|
||||
return __this;
|
||||
}
|
||||
|
||||
Stdin_obj::Stdin_obj()
|
||||
{
|
||||
}
|
||||
|
||||
void Stdin_obj::__Mark(HX_MARK_PARAMS)
|
||||
{
|
||||
HX_MARK_BEGIN_CLASS(Stdin);
|
||||
HX_MARK_MEMBER_NAME(p,"p");
|
||||
HX_MARK_MEMBER_NAME(buf,"buf");
|
||||
HX_MARK_END_CLASS();
|
||||
}
|
||||
|
||||
void Stdin_obj::__Visit(HX_VISIT_PARAMS)
|
||||
{
|
||||
HX_VISIT_MEMBER_NAME(p,"p");
|
||||
HX_VISIT_MEMBER_NAME(buf,"buf");
|
||||
}
|
||||
|
||||
hx::Val Stdin_obj::__Field(const ::String &inName,hx::PropertyAccess inCallProp)
|
||||
{
|
||||
switch(inName.length) {
|
||||
case 1:
|
||||
if (HX_FIELD_EQ(inName,"p") ) { return hx::Val( p ); }
|
||||
break;
|
||||
case 3:
|
||||
if (HX_FIELD_EQ(inName,"buf") ) { return hx::Val( buf ); }
|
||||
}
|
||||
return super::__Field(inName,inCallProp);
|
||||
}
|
||||
|
||||
hx::Val Stdin_obj::__SetField(const ::String &inName,const hx::Val &inValue,hx::PropertyAccess inCallProp)
|
||||
{
|
||||
switch(inName.length) {
|
||||
case 1:
|
||||
if (HX_FIELD_EQ(inName,"p") ) { p=inValue.Cast< ::Dynamic >(); return inValue; }
|
||||
break;
|
||||
case 3:
|
||||
if (HX_FIELD_EQ(inName,"buf") ) { buf=inValue.Cast< ::haxe::io::Bytes >(); return inValue; }
|
||||
}
|
||||
return super::__SetField(inName,inValue,inCallProp);
|
||||
}
|
||||
|
||||
void Stdin_obj::__GetFields(Array< ::String> &outFields)
|
||||
{
|
||||
outFields->push(HX_("p",70,00,00,00));
|
||||
outFields->push(HX_("buf",33,c3,4a,00));
|
||||
super::__GetFields(outFields);
|
||||
};
|
||||
|
||||
#ifdef HXCPP_SCRIPTABLE
|
||||
static hx::StorageInfo Stdin_obj_sMemberStorageInfo[] = {
|
||||
{hx::fsObject /* ::Dynamic */ ,(int)offsetof(Stdin_obj,p),HX_("p",70,00,00,00)},
|
||||
{hx::fsObject /* ::haxe::io::Bytes */ ,(int)offsetof(Stdin_obj,buf),HX_("buf",33,c3,4a,00)},
|
||||
{ hx::fsUnknown, 0, null()}
|
||||
};
|
||||
static hx::StaticInfo *Stdin_obj_sStaticStorageInfo = 0;
|
||||
#endif
|
||||
|
||||
static ::String Stdin_obj_sMemberFields[] = {
|
||||
HX_("p",70,00,00,00),
|
||||
HX_("buf",33,c3,4a,00),
|
||||
::String(null()) };
|
||||
|
||||
hx::Class Stdin_obj::__mClass;
|
||||
|
||||
void Stdin_obj::__register()
|
||||
{
|
||||
Stdin_obj _hx_dummy;
|
||||
Stdin_obj::_hx_vtable = *(void **)&_hx_dummy;
|
||||
hx::Static(__mClass) = new hx::Class_obj();
|
||||
__mClass->mName = HX_("sys.io._Process.Stdin",f1,27,26,c5);
|
||||
__mClass->mSuper = &super::__SGetClass();
|
||||
__mClass->mConstructEmpty = &__CreateEmpty;
|
||||
__mClass->mConstructArgs = &__Create;
|
||||
__mClass->mGetStaticField = &hx::Class_obj::GetNoStaticField;
|
||||
__mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
|
||||
__mClass->mStatics = hx::Class_obj::dupFunctions(0 /* sStaticFields */);
|
||||
__mClass->mMembers = hx::Class_obj::dupFunctions(Stdin_obj_sMemberFields);
|
||||
__mClass->mCanCast = hx::TCanCast< Stdin_obj >;
|
||||
#ifdef HXCPP_SCRIPTABLE
|
||||
__mClass->mMemberStorageInfo = Stdin_obj_sMemberStorageInfo;
|
||||
#endif
|
||||
#ifdef HXCPP_SCRIPTABLE
|
||||
__mClass->mStaticStorageInfo = Stdin_obj_sStaticStorageInfo;
|
||||
#endif
|
||||
hx::_hx_RegisterClass(__mClass->mName, __mClass);
|
||||
}
|
||||
|
||||
} // end namespace sys
|
||||
} // end namespace io
|
||||
} // end namespace _Process
|
||||
209
hGameTest/bin/linux/obj/src/sys/io/_Process/Stdout.cpp
Normal file
209
hGameTest/bin/linux/obj/src/sys/io/_Process/Stdout.cpp
Normal file
@@ -0,0 +1,209 @@
|
||||
// Generated by Haxe 4.0.5
|
||||
#include <hxcpp.h>
|
||||
|
||||
#ifndef INCLUDED_haxe_io_Bytes
|
||||
#include <haxe/io/Bytes.h>
|
||||
#endif
|
||||
#ifndef INCLUDED_haxe_io_Eof
|
||||
#include <haxe/io/Eof.h>
|
||||
#endif
|
||||
#ifndef INCLUDED_haxe_io_Error
|
||||
#include <haxe/io/Error.h>
|
||||
#endif
|
||||
#ifndef INCLUDED_haxe_io_Input
|
||||
#include <haxe/io/Input.h>
|
||||
#endif
|
||||
#ifndef INCLUDED_sys_io__Process_Stdout
|
||||
#include <sys/io/_Process/Stdout.h>
|
||||
#endif
|
||||
|
||||
HX_DEFINE_STACK_FRAME(_hx_pos_36fe6243f75e6674_61_new,"sys.io._Process.Stdout","new",0xc765a8f4,"sys.io._Process.Stdout.new","/usr/share/haxe/std/cpp/_std/sys/io/Process.hx",61,0x2d961692)
|
||||
HX_LOCAL_STACK_FRAME(_hx_pos_36fe6243f75e6674_67_readByte,"sys.io._Process.Stdout","readByte",0xa72b886a,"sys.io._Process.Stdout.readByte","/usr/share/haxe/std/cpp/_std/sys/io/Process.hx",67,0x2d961692)
|
||||
HX_LOCAL_STACK_FRAME(_hx_pos_36fe6243f75e6674_73_readBytes,"sys.io._Process.Stdout","readBytes",0x9eebd4c9,"sys.io._Process.Stdout.readBytes","/usr/share/haxe/std/cpp/_std/sys/io/Process.hx",73,0x2d961692)
|
||||
namespace sys{
|
||||
namespace io{
|
||||
namespace _Process{
|
||||
|
||||
void Stdout_obj::__construct( ::Dynamic p,bool out){
|
||||
HX_STACKFRAME(&_hx_pos_36fe6243f75e6674_61_new)
|
||||
HXLINE( 62) this->p = p;
|
||||
HXLINE( 63) this->out = out;
|
||||
HXLINE( 64) this->buf = ::haxe::io::Bytes_obj::alloc(1);
|
||||
}
|
||||
|
||||
Dynamic Stdout_obj::__CreateEmpty() { return new Stdout_obj; }
|
||||
|
||||
void *Stdout_obj::_hx_vtable = 0;
|
||||
|
||||
Dynamic Stdout_obj::__Create(hx::DynamicArray inArgs)
|
||||
{
|
||||
hx::ObjectPtr< Stdout_obj > _hx_result = new Stdout_obj();
|
||||
_hx_result->__construct(inArgs[0],inArgs[1]);
|
||||
return _hx_result;
|
||||
}
|
||||
|
||||
bool Stdout_obj::_hx_isInstanceOf(int inClassId) {
|
||||
if (inClassId<=(int)0x3de41c2e) {
|
||||
return inClassId==(int)0x00000001 || inClassId==(int)0x3de41c2e;
|
||||
} else {
|
||||
return inClassId==(int)0x5c18cd32;
|
||||
}
|
||||
}
|
||||
|
||||
int Stdout_obj::readByte(){
|
||||
HX_STACKFRAME(&_hx_pos_36fe6243f75e6674_67_readByte)
|
||||
HXLINE( 68) if ((this->readBytes(this->buf,0,1) == 0)) {
|
||||
HXLINE( 69) HX_STACK_DO_THROW(::haxe::io::Error_obj::Blocked_dyn());
|
||||
}
|
||||
HXLINE( 70) return ( (int)(this->buf->b->__get(0)) );
|
||||
}
|
||||
|
||||
|
||||
int Stdout_obj::readBytes( ::haxe::io::Bytes str,int pos,int len){
|
||||
HX_GC_STACKFRAME(&_hx_pos_36fe6243f75e6674_73_readBytes)
|
||||
HXLINE( 74) int result;
|
||||
HXLINE( 75) try {
|
||||
HX_STACK_CATCHABLE( ::Dynamic, 0);
|
||||
HXLINE( 76) if (this->out) {
|
||||
HXLINE( 76) result = _hx_std_process_stdout_read(this->p,str->b,pos,len);
|
||||
}
|
||||
else {
|
||||
HXLINE( 76) result = _hx_std_process_stderr_read(this->p,str->b,pos,len);
|
||||
}
|
||||
} catch( ::Dynamic _hx_e) {
|
||||
if (_hx_e.IsClass< ::Dynamic >() ){
|
||||
HX_STACK_BEGIN_CATCH
|
||||
::Dynamic e = _hx_e;
|
||||
HXLINE( 78) HX_STACK_DO_THROW( ::haxe::io::Eof_obj::__alloc( HX_CTX ));
|
||||
}
|
||||
else {
|
||||
HX_STACK_DO_THROW(_hx_e);
|
||||
}
|
||||
}
|
||||
HXLINE( 80) if ((result == 0)) {
|
||||
HXLINE( 81) HX_STACK_DO_THROW( ::haxe::io::Eof_obj::__alloc( HX_CTX ));
|
||||
}
|
||||
HXLINE( 82) return result;
|
||||
}
|
||||
|
||||
|
||||
|
||||
hx::ObjectPtr< Stdout_obj > Stdout_obj::__new( ::Dynamic p,bool out) {
|
||||
hx::ObjectPtr< Stdout_obj > __this = new Stdout_obj();
|
||||
__this->__construct(p,out);
|
||||
return __this;
|
||||
}
|
||||
|
||||
hx::ObjectPtr< Stdout_obj > Stdout_obj::__alloc(hx::Ctx *_hx_ctx, ::Dynamic p,bool out) {
|
||||
Stdout_obj *__this = (Stdout_obj*)(hx::Ctx::alloc(_hx_ctx, sizeof(Stdout_obj), true, "sys.io._Process.Stdout"));
|
||||
*(void **)__this = Stdout_obj::_hx_vtable;
|
||||
__this->__construct(p,out);
|
||||
return __this;
|
||||
}
|
||||
|
||||
Stdout_obj::Stdout_obj()
|
||||
{
|
||||
}
|
||||
|
||||
void Stdout_obj::__Mark(HX_MARK_PARAMS)
|
||||
{
|
||||
HX_MARK_BEGIN_CLASS(Stdout);
|
||||
HX_MARK_MEMBER_NAME(p,"p");
|
||||
HX_MARK_MEMBER_NAME(out,"out");
|
||||
HX_MARK_MEMBER_NAME(buf,"buf");
|
||||
HX_MARK_END_CLASS();
|
||||
}
|
||||
|
||||
void Stdout_obj::__Visit(HX_VISIT_PARAMS)
|
||||
{
|
||||
HX_VISIT_MEMBER_NAME(p,"p");
|
||||
HX_VISIT_MEMBER_NAME(out,"out");
|
||||
HX_VISIT_MEMBER_NAME(buf,"buf");
|
||||
}
|
||||
|
||||
hx::Val Stdout_obj::__Field(const ::String &inName,hx::PropertyAccess inCallProp)
|
||||
{
|
||||
switch(inName.length) {
|
||||
case 1:
|
||||
if (HX_FIELD_EQ(inName,"p") ) { return hx::Val( p ); }
|
||||
break;
|
||||
case 3:
|
||||
if (HX_FIELD_EQ(inName,"out") ) { return hx::Val( out ); }
|
||||
if (HX_FIELD_EQ(inName,"buf") ) { return hx::Val( buf ); }
|
||||
break;
|
||||
case 8:
|
||||
if (HX_FIELD_EQ(inName,"readByte") ) { return hx::Val( readByte_dyn() ); }
|
||||
break;
|
||||
case 9:
|
||||
if (HX_FIELD_EQ(inName,"readBytes") ) { return hx::Val( readBytes_dyn() ); }
|
||||
}
|
||||
return super::__Field(inName,inCallProp);
|
||||
}
|
||||
|
||||
hx::Val Stdout_obj::__SetField(const ::String &inName,const hx::Val &inValue,hx::PropertyAccess inCallProp)
|
||||
{
|
||||
switch(inName.length) {
|
||||
case 1:
|
||||
if (HX_FIELD_EQ(inName,"p") ) { p=inValue.Cast< ::Dynamic >(); return inValue; }
|
||||
break;
|
||||
case 3:
|
||||
if (HX_FIELD_EQ(inName,"out") ) { out=inValue.Cast< bool >(); return inValue; }
|
||||
if (HX_FIELD_EQ(inName,"buf") ) { buf=inValue.Cast< ::haxe::io::Bytes >(); return inValue; }
|
||||
}
|
||||
return super::__SetField(inName,inValue,inCallProp);
|
||||
}
|
||||
|
||||
void Stdout_obj::__GetFields(Array< ::String> &outFields)
|
||||
{
|
||||
outFields->push(HX_("p",70,00,00,00));
|
||||
outFields->push(HX_("out",8e,a0,54,00));
|
||||
outFields->push(HX_("buf",33,c3,4a,00));
|
||||
super::__GetFields(outFields);
|
||||
};
|
||||
|
||||
#ifdef HXCPP_SCRIPTABLE
|
||||
static hx::StorageInfo Stdout_obj_sMemberStorageInfo[] = {
|
||||
{hx::fsObject /* ::Dynamic */ ,(int)offsetof(Stdout_obj,p),HX_("p",70,00,00,00)},
|
||||
{hx::fsBool,(int)offsetof(Stdout_obj,out),HX_("out",8e,a0,54,00)},
|
||||
{hx::fsObject /* ::haxe::io::Bytes */ ,(int)offsetof(Stdout_obj,buf),HX_("buf",33,c3,4a,00)},
|
||||
{ hx::fsUnknown, 0, null()}
|
||||
};
|
||||
static hx::StaticInfo *Stdout_obj_sStaticStorageInfo = 0;
|
||||
#endif
|
||||
|
||||
static ::String Stdout_obj_sMemberFields[] = {
|
||||
HX_("p",70,00,00,00),
|
||||
HX_("out",8e,a0,54,00),
|
||||
HX_("buf",33,c3,4a,00),
|
||||
HX_("readByte",7e,f9,1a,69),
|
||||
HX_("readBytes",35,55,7f,8e),
|
||||
::String(null()) };
|
||||
|
||||
hx::Class Stdout_obj::__mClass;
|
||||
|
||||
void Stdout_obj::__register()
|
||||
{
|
||||
Stdout_obj _hx_dummy;
|
||||
Stdout_obj::_hx_vtable = *(void **)&_hx_dummy;
|
||||
hx::Static(__mClass) = new hx::Class_obj();
|
||||
__mClass->mName = HX_("sys.io._Process.Stdout",02,5f,41,bc);
|
||||
__mClass->mSuper = &super::__SGetClass();
|
||||
__mClass->mConstructEmpty = &__CreateEmpty;
|
||||
__mClass->mConstructArgs = &__Create;
|
||||
__mClass->mGetStaticField = &hx::Class_obj::GetNoStaticField;
|
||||
__mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
|
||||
__mClass->mStatics = hx::Class_obj::dupFunctions(0 /* sStaticFields */);
|
||||
__mClass->mMembers = hx::Class_obj::dupFunctions(Stdout_obj_sMemberFields);
|
||||
__mClass->mCanCast = hx::TCanCast< Stdout_obj >;
|
||||
#ifdef HXCPP_SCRIPTABLE
|
||||
__mClass->mMemberStorageInfo = Stdout_obj_sMemberStorageInfo;
|
||||
#endif
|
||||
#ifdef HXCPP_SCRIPTABLE
|
||||
__mClass->mStaticStorageInfo = Stdout_obj_sStaticStorageInfo;
|
||||
#endif
|
||||
hx::_hx_RegisterClass(__mClass->mName, __mClass);
|
||||
}
|
||||
|
||||
} // end namespace sys
|
||||
} // end namespace io
|
||||
} // end namespace _Process
|
||||
148
hGameTest/bin/linux/obj/src/sys/thread/Deque.cpp
Normal file
148
hGameTest/bin/linux/obj/src/sys/thread/Deque.cpp
Normal file
@@ -0,0 +1,148 @@
|
||||
// Generated by Haxe 4.0.5
|
||||
#include <hxcpp.h>
|
||||
|
||||
#ifndef INCLUDED_sys_thread_Deque
|
||||
#include <sys/thread/Deque.h>
|
||||
#endif
|
||||
|
||||
HX_DEFINE_STACK_FRAME(_hx_pos_136ea4cadc3ef98e_30_new,"sys.thread.Deque","new",0xfb067acf,"sys.thread.Deque.new","/usr/share/haxe/std/cpp/_std/sys/thread/Deque.hx",30,0xcc38045d)
|
||||
HX_LOCAL_STACK_FRAME(_hx_pos_136ea4cadc3ef98e_34_add,"sys.thread.Deque","add",0xfafc9c90,"sys.thread.Deque.add","/usr/share/haxe/std/cpp/_std/sys/thread/Deque.hx",34,0xcc38045d)
|
||||
HX_LOCAL_STACK_FRAME(_hx_pos_136ea4cadc3ef98e_38_push,"sys.thread.Deque","push",0xac03888b,"sys.thread.Deque.push","/usr/share/haxe/std/cpp/_std/sys/thread/Deque.hx",38,0xcc38045d)
|
||||
HX_LOCAL_STACK_FRAME(_hx_pos_136ea4cadc3ef98e_42_pop,"sys.thread.Deque","pop",0xfb080800,"sys.thread.Deque.pop","/usr/share/haxe/std/cpp/_std/sys/thread/Deque.hx",42,0xcc38045d)
|
||||
namespace sys{
|
||||
namespace thread{
|
||||
|
||||
void Deque_obj::__construct(){
|
||||
HX_STACKFRAME(&_hx_pos_136ea4cadc3ef98e_30_new)
|
||||
HXDLIN( 30) this->q = ::__hxcpp_deque_create();
|
||||
}
|
||||
|
||||
Dynamic Deque_obj::__CreateEmpty() { return new Deque_obj; }
|
||||
|
||||
void *Deque_obj::_hx_vtable = 0;
|
||||
|
||||
Dynamic Deque_obj::__Create(hx::DynamicArray inArgs)
|
||||
{
|
||||
hx::ObjectPtr< Deque_obj > _hx_result = new Deque_obj();
|
||||
_hx_result->__construct();
|
||||
return _hx_result;
|
||||
}
|
||||
|
||||
bool Deque_obj::_hx_isInstanceOf(int inClassId) {
|
||||
return inClassId==(int)0x00000001 || inClassId==(int)0x5c8bea89;
|
||||
}
|
||||
|
||||
void Deque_obj::add( ::Dynamic i){
|
||||
HX_STACKFRAME(&_hx_pos_136ea4cadc3ef98e_34_add)
|
||||
HXDLIN( 34) ::__hxcpp_deque_add(this->q,i);
|
||||
}
|
||||
|
||||
|
||||
HX_DEFINE_DYNAMIC_FUNC1(Deque_obj,add,(void))
|
||||
|
||||
void Deque_obj::push( ::Dynamic i){
|
||||
HX_STACKFRAME(&_hx_pos_136ea4cadc3ef98e_38_push)
|
||||
HXDLIN( 38) ::__hxcpp_deque_push(this->q,i);
|
||||
}
|
||||
|
||||
|
||||
HX_DEFINE_DYNAMIC_FUNC1(Deque_obj,push,(void))
|
||||
|
||||
::Dynamic Deque_obj::pop(bool block){
|
||||
HX_STACKFRAME(&_hx_pos_136ea4cadc3ef98e_42_pop)
|
||||
HXDLIN( 42) return ::__hxcpp_deque_pop(this->q,block);
|
||||
}
|
||||
|
||||
|
||||
HX_DEFINE_DYNAMIC_FUNC1(Deque_obj,pop,return )
|
||||
|
||||
|
||||
Deque_obj::Deque_obj()
|
||||
{
|
||||
}
|
||||
|
||||
void Deque_obj::__Mark(HX_MARK_PARAMS)
|
||||
{
|
||||
HX_MARK_BEGIN_CLASS(Deque);
|
||||
HX_MARK_MEMBER_NAME(q,"q");
|
||||
HX_MARK_END_CLASS();
|
||||
}
|
||||
|
||||
void Deque_obj::__Visit(HX_VISIT_PARAMS)
|
||||
{
|
||||
HX_VISIT_MEMBER_NAME(q,"q");
|
||||
}
|
||||
|
||||
hx::Val Deque_obj::__Field(const ::String &inName,hx::PropertyAccess inCallProp)
|
||||
{
|
||||
switch(inName.length) {
|
||||
case 1:
|
||||
if (HX_FIELD_EQ(inName,"q") ) { return hx::Val( q ); }
|
||||
break;
|
||||
case 3:
|
||||
if (HX_FIELD_EQ(inName,"add") ) { return hx::Val( add_dyn() ); }
|
||||
if (HX_FIELD_EQ(inName,"pop") ) { return hx::Val( pop_dyn() ); }
|
||||
break;
|
||||
case 4:
|
||||
if (HX_FIELD_EQ(inName,"push") ) { return hx::Val( push_dyn() ); }
|
||||
}
|
||||
return super::__Field(inName,inCallProp);
|
||||
}
|
||||
|
||||
hx::Val Deque_obj::__SetField(const ::String &inName,const hx::Val &inValue,hx::PropertyAccess inCallProp)
|
||||
{
|
||||
switch(inName.length) {
|
||||
case 1:
|
||||
if (HX_FIELD_EQ(inName,"q") ) { q=inValue.Cast< ::Dynamic >(); return inValue; }
|
||||
}
|
||||
return super::__SetField(inName,inValue,inCallProp);
|
||||
}
|
||||
|
||||
void Deque_obj::__GetFields(Array< ::String> &outFields)
|
||||
{
|
||||
outFields->push(HX_("q",71,00,00,00));
|
||||
super::__GetFields(outFields);
|
||||
};
|
||||
|
||||
#ifdef HXCPP_SCRIPTABLE
|
||||
static hx::StorageInfo Deque_obj_sMemberStorageInfo[] = {
|
||||
{hx::fsObject /* ::Dynamic */ ,(int)offsetof(Deque_obj,q),HX_("q",71,00,00,00)},
|
||||
{ hx::fsUnknown, 0, null()}
|
||||
};
|
||||
static hx::StaticInfo *Deque_obj_sStaticStorageInfo = 0;
|
||||
#endif
|
||||
|
||||
static ::String Deque_obj_sMemberFields[] = {
|
||||
HX_("q",71,00,00,00),
|
||||
HX_("add",21,f2,49,00),
|
||||
HX_("push",da,11,61,4a),
|
||||
HX_("pop",91,5d,55,00),
|
||||
::String(null()) };
|
||||
|
||||
hx::Class Deque_obj::__mClass;
|
||||
|
||||
void Deque_obj::__register()
|
||||
{
|
||||
Deque_obj _hx_dummy;
|
||||
Deque_obj::_hx_vtable = *(void **)&_hx_dummy;
|
||||
hx::Static(__mClass) = new hx::Class_obj();
|
||||
__mClass->mName = HX_("sys.thread.Deque",5d,67,c7,9a);
|
||||
__mClass->mSuper = &super::__SGetClass();
|
||||
__mClass->mConstructEmpty = &__CreateEmpty;
|
||||
__mClass->mConstructArgs = &__Create;
|
||||
__mClass->mGetStaticField = &hx::Class_obj::GetNoStaticField;
|
||||
__mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
|
||||
__mClass->mStatics = hx::Class_obj::dupFunctions(0 /* sStaticFields */);
|
||||
__mClass->mMembers = hx::Class_obj::dupFunctions(Deque_obj_sMemberFields);
|
||||
__mClass->mCanCast = hx::TCanCast< Deque_obj >;
|
||||
#ifdef HXCPP_SCRIPTABLE
|
||||
__mClass->mMemberStorageInfo = Deque_obj_sMemberStorageInfo;
|
||||
#endif
|
||||
#ifdef HXCPP_SCRIPTABLE
|
||||
__mClass->mStaticStorageInfo = Deque_obj_sStaticStorageInfo;
|
||||
#endif
|
||||
hx::_hx_RegisterClass(__mClass->mName, __mClass);
|
||||
}
|
||||
|
||||
} // end namespace sys
|
||||
} // end namespace thread
|
||||
Reference in New Issue
Block a user