Commit a960a6f9 authored by Tomoyuki Sahara's avatar Tomoyuki Sahara

failed to add...

parent 3a22166c
#include <stdio.h>
#include "mruby.h"
mrb_value
mrb_sockettest_tmppath(mrb_state *mrb, mrb_value klass)
{
return mrb_str_new_cstr(mrb, tempnam(NULL, "mruby-socket"));
}
void
mrb_mruby_socket_gem_test(mrb_state* mrb)
{
struct RClass *c = mrb_define_module(mrb, "SocketTest");
mrb_define_class_method(mrb, c, "tmppath", mrb_sockettest_tmppath, MRB_ARGS_NONE());
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment