Skip to content

Instantly share code, notes, and snippets.

@kjunichi
Last active June 23, 2017 06:26
Show Gist options
  • Save kjunichi/1fea273019d252278dbeae1ca0f211cc to your computer and use it in GitHub Desktop.
Save kjunichi/1fea273019d252278dbeae1ca0f211cc to your computer and use it in GitHub Desktop.
2017/6/23

mruby.dll

python

mrb_open=windll.mruby.mrb_open
mrb_open.restype=c_void_p                                                                                           
mrb=mrb_open()                                                                                                      

mrb_show_version=windll.mruby.mrb_show_version
mrb_show_version.argtypes=(c_void_p,)
mrb_show_version(mrb)

class MRB(Structure):
  _fields_ = [("_", c_char * 16)]

mrb_load_string=windll.mruby.mrb_load_string
mrb_load_string.restype=MRB
mrb_load_string.argtypes=(c_void_p,c_char_p)
mrb_load_string(mrb, b"puts 'hello'")

Julia

mrb = ccall((:mrb_open, "mruby"), Ptr{Void} , ())

struct MRB # type < 0.6
 _::NTuple{16, Cchar} 
end

val = ccall((:mrb_load_string, "mruby"), MRB, (Ptr{Void},Cstring), mrb,"puts 'hello'")

macOSからWindowsのファイル共有を覗く

smbutil view //who@machine.local

関連

アクセス解析タグ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment