mirror of
https://github.com/ruby-opencv/ruby-opencv
synced 2023-03-27 23:22:12 -04:00
define module alias in cpp code
This commit is contained in:
parent
9c7e778928
commit
a1dc077e24
2 changed files with 6 additions and 2 deletions
|
@ -105,5 +105,11 @@ namespace rubyopencv {
|
|||
rb_define_singleton_method(rb_module, "add_weighted", RUBY_METHOD_FUNC(Mat::rb_add_weighted), -1); // in ext/opencv/mat.cpp
|
||||
|
||||
rb_define_singleton_method(rb_module, "CV_MAKETYPE", RUBY_METHOD_FUNC(rb_maketype), 2);
|
||||
|
||||
int state = 0;
|
||||
VALUE ret = rb_eval_string_protect("OpenCV = Cv", &state);
|
||||
if (NIL_P(ret)) {
|
||||
rb_warn("An exception occured: %d", state);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,5 +2,3 @@ require_relative "opencv/version"
|
|||
require "opencv.so"
|
||||
require_relative "opencv/basic_structs"
|
||||
require_relative "opencv/cvmat"
|
||||
|
||||
OpenCV = Cv
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue