るりまサーチ

最速Rubyリファレンスマニュアル検索!
624件ヒット [301-400件を表示] (0.489秒)

別のキーワード

  1. _builtin new
  2. _builtin inspect
  3. _builtin []
  4. _builtin to_s
  5. _builtin each

検索結果

<< < ... 2 3 4 5 6 ... > >>

Kernel#try_constant(const, headers = nil, opt = "") { ... } -> Integer | nil (21119.0)

定数 const がシステムに存在するかどうか検査します。 Kernel#have_const を使ってください。

...がシステムに存在するかどうか検査します。
Kernel
#have_const を使ってください。

@param const C 言語の定数名を指定します。

@param headers 追加のヘッダファイルを指定します。

@param opt コンパイラに渡すオプションを指定します...

Kernel#create_makefile(target, srcprefix = nil) -> true (21109.0)

@todo

...@todo

Kernel
#have_library などの各種検査の結果を元に、拡張ライブラリを
ビルドするための Makefile を生成します。

extconf.rb は普通このメソッドの呼び出しで終ります。

@param target ターゲットとなる拡張ライブラリの名前を指...
...ラリを Ruby スクリプトから使用するときは
"require 'test/foo'" とする必要があります。

@param srcprefix ソースコードがあるディレクトリ名を指定します。
省略した場合は extconf.rb があるディレ...
...test/
foo.c

このようにします。

require 'mkmf'
create_makefile('test/foo', 'test')

このようにして作った Makefile で 'make install' すると拡張ライブラリは、
以下のパスにインストールされます。

/path/to/ruby/sitearchdir/test/foo.so...

Kernel#find_library(lib, func, *paths) -> bool (21109.0)

関数 func が定義されたライブラリ lib を探します。

...されたライブラリ lib を探します。

最初はパスを指定せずに探し、
それに失敗したら paths[0] を指定して探し、
それにも失敗したら paths[1] を指定して探し……
というように、リンク可能なライブラリを探索します。

上記...
...します。

p
aths を指定しないときは Kernel#have_library と同じ動作です。

@param lib ライブラリ名を指定します。

@param func 関数名を指定します。
nil または空文字列を指定した場合は "main" になります。

@param paths ライブ...

Kernel#find_library(lib, func, *paths) { ... } -> bool (21109.0)

関数 func が定義されたライブラリ lib を探します。

...されたライブラリ lib を探します。

最初はパスを指定せずに探し、
それに失敗したら paths[0] を指定して探し、
それにも失敗したら paths[1] を指定して探し……
というように、リンク可能なライブラリを探索します。

上記...
...します。

p
aths を指定しないときは Kernel#have_library と同じ動作です。

@param lib ライブラリ名を指定します。

@param func 関数名を指定します。
nil または空文字列を指定した場合は "main" になります。

@param paths ライブ...

Kernel#try_do(src, command, *opts) -> () (21109.0)

@param src C プログラムのソースコードを指定します。

...@param src C プログラムのソースコードを指定します。

@param command コマンドを指定します。

@param opts オプションを Hash で指定します。

@raise RuntimeError 開発環境がインストールされていない場合に発生します。

@see Kernel#xsyste...

絞り込み条件を変える

Kernel#try_do(src, command, *opts) { ... } -> () (21109.0)

@param src C プログラムのソースコードを指定します。

...@param src C プログラムのソースコードを指定します。

@param command コマンドを指定します。

@param opts オプションを Hash で指定します。

@raise RuntimeError 開発環境がインストールされていない場合に発生します。

@see Kernel#xsyste...

Kernel#cc_command(opt = "") -> String (21103.0)

実際にコンパイルする際に使用するコマンドを返します。

...実際にコンパイルする際に使用するコマンドを返します。

@param opt コンパイラに与える追加のコマンドライン引数を指定します。

@see RbConfig.expand...

Kernel#check_signedness(type, headers = nil, opts = nil) -> "signed" | "unsigned" | nil (21103.0)

Returns the signedness of the given +type+. You may optionally specify additional +headers+ to search in for the +type+. If the +type+ is found and is a numeric type, a macro is passed as a preprocessor constant to the compiler using the +type+ name, in uppercase, prepended with 'SIGNEDNESS_OF_', followed by the +type+ name, followed by '=X' where 'X' is positive integer if the +type+ is unsigned, or negative integer if the +type+ is signed. For example, if size_t is defined as unsigned, then check_signedness('size_t') would returned +1 and the SIGNEDNESS_OF_SIZE_T=+1 preprocessor macro would be passed to the compiler, and SIGNEDNESS_OF_INT=-1 if check_signedness('int') is done.

...ven +type+. You may optionally
specify additional +headers+ to search in for the +type+.

If the +type+ is found and is a numeric type, a macro is passed as a
p
reprocessor constant to the compiler using the +type+ name, in
uppercase, prepended with 'SIGNEDNESS_OF_', followed by the +type+
nam...
...' where 'X' is positive integer if the +type+ is
unsigned, or negative integer if the +type+ is signed.

For example, if size_t is defined as unsigned, then
check_signedness('size_t') would returned +1 and the
SIGNEDNESS_OF_SIZE_T=+1 preprocessor macro would be passed to the
compiler, and SIGN...

Kernel#check_signedness(type, headers = nil, opts = nil) { ... } -> "signed" | "unsigned" | nil (21103.0)

Returns the signedness of the given +type+. You may optionally specify additional +headers+ to search in for the +type+. If the +type+ is found and is a numeric type, a macro is passed as a preprocessor constant to the compiler using the +type+ name, in uppercase, prepended with 'SIGNEDNESS_OF_', followed by the +type+ name, followed by '=X' where 'X' is positive integer if the +type+ is unsigned, or negative integer if the +type+ is signed. For example, if size_t is defined as unsigned, then check_signedness('size_t') would returned +1 and the SIGNEDNESS_OF_SIZE_T=+1 preprocessor macro would be passed to the compiler, and SIGNEDNESS_OF_INT=-1 if check_signedness('int') is done.

...ven +type+. You may optionally
specify additional +headers+ to search in for the +type+.

If the +type+ is found and is a numeric type, a macro is passed as a
p
reprocessor constant to the compiler using the +type+ name, in
uppercase, prepended with 'SIGNEDNESS_OF_', followed by the +type+
nam...
...' where 'X' is positive integer if the +type+ is
unsigned, or negative integer if the +type+ is signed.

For example, if size_t is defined as unsigned, then
check_signedness('size_t') would returned +1 and the
SIGNEDNESS_OF_SIZE_T=+1 preprocessor macro would be passed to the
compiler, and SIGN...
<< < ... 2 3 4 5 6 ... > >>