Created
August 30, 2016 13:22
-
-
Save laiso/cdcec81029dcc29dc4be10ffb496b712 to your computer and use it in GitHub Desktop.
講義全然聞いてなかったけどこのコードが動くようになってうれしい #CodePiece
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import CMruby | |
import CMrubyCompile | |
let mrb = mrb_open() | |
let value = mrb_load_string(mrb, "1+1") | |
print("Result: \(value.value.i)") // 2 | |
mrb_close(mrb) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment