在Ruby2.7中,我有很多这样的警告: <main>: warning: __FILE__ in eval may not return location in binding; use Binding#source_location instead
/Users/user/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/pry-nav-0.3.0/lib
我希望在同一个C/C++文件中包含Python.h和ruby.h头文件,因为我希望同时使用这两个文件。哪种最好的方法是同时包含这两种语言,并防止编译器/预处理器警告相同变量的多个重定义,还是有另一种方法从C中使用这些语言?} 来自预处理器的警告如下所示: In file included from /path/to/Python/include/Python.h:8,
from /path/inclu