Rearrange & setup
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
#include "pch.h"
|
||||
#include "utils.h"
|
||||
|
||||
namespace Ruby {
|
||||
extern mrb_state *mrb;
|
||||
struct Block {
|
||||
mrb_value proc;
|
||||
|
||||
Block(mrb_value proc) : proc(proc) {
|
||||
mrb_gc_protect(mrb, proc);
|
||||
}
|
||||
};
|
||||
}; // namespace Ruby
|
||||
Reference in New Issue
Block a user