example2.rb in RubyInline-3.9.0 vs example2.rb in RubyInline-3.10.0
- old
+ new
@@ -12,13 +12,12 @@
inline do |builder|
builder.add_compile_flags %q(-x c++)
builder.add_link_flags %q(-lstdc++)
+ builder.include "<iostream>"
+
builder.c "
-// stupid c++ comment
-#include <iostream>
-/* stupid c comment */
static
void
hello(int i) {
while (i-- > 0) {
std::cout << \"hello\" << std::endl;