Skip to content

xor256/Dziwne

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  1. How create rb_dziwne_new() function to create object "dziwne"

for example: { VALUE a = rb_ary_new(); rb_ary_push(a, <new empty object class "Dziwne"> );

return a }

return array with 'Dziwne' object

[ #Dziwne:0x000056344f52a428 ]

  1. How check type of my object inside my object.

VALUE t_foo(VALUE obj, VALUE i) { Check_Type(i, <type of my class "dziwne">); or similar function

  1. How create a function with utf8 name?

void Init_Dziwne() { [...] rb_define_method(cDziwne, "żółte", (ruby_method*) &t_zolte, 0);

  1. How defining utf8 string form C extension

str = rb_str_new ? ( "żółte" );

  1. How using find_library in extconf.rb

unless find_library('for example png', '?what I can put here') abort "Biblioteka jest konieczna" end

I need check the library in many system. Search in many places. /include and /lib

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 42.3%
  • Ruby 37.1%
  • Makefile 20.6%