update to show a calculation

This commit is contained in:
Josh Holtrop 2014-01-16 16:32:37 -05:00
parent 5c9bd9c832
commit 583da83cd3

3
main.c
View File

@ -4,6 +4,7 @@ int main(int argc, char *argv[])
{
ruby_init();
ruby_init_loadpath();
rb_eval_string("puts 'Hello, C world from Ruby'");
VALUE v = rb_eval_string("3 + 8");
printf("v: %d\n", FIX2INT(v));
return 0;
}