モジュール
- Kernel (132)
キーワード
-
check
_ signedness (22) -
find
_ library (22) -
have
_ func (22) -
have
_ library (22) -
try
_ func (22) -
try
_ run (22)
検索結果
先頭5件
-
Kernel
# have _ func(func , headers = nil) -> bool (6302.0) -
関数 func がシステムに存在するかどうかを検査します。
...関数 func がシステムに存在するかどうかを検査します。
関数 func が存在すれば $defs に "-DHAVE_func" (func は大文字に変
換されます) を追加して true を返します。関数 func が見つからないときは
グローバル変数を変更せず false......を返します。
@param func 関数名を指定します。
@param headers 関数 func を使用するのに必要なヘッダファイル名を指定しま
す。これは関数の型をチェックするためではなく、関数が実際
にはマクロで定義... -
Kernel
# have _ func(func , headers = nil) { . . . } -> bool (6302.0) -
関数 func がシステムに存在するかどうかを検査します。
...関数 func がシステムに存在するかどうかを検査します。
関数 func が存在すれば $defs に "-DHAVE_func" (func は大文字に変
換されます) を追加して true を返します。関数 func が見つからないときは
グローバル変数を変更せず false......を返します。
@param func 関数名を指定します。
@param headers 関数 func を使用するのに必要なヘッダファイル名を指定しま
す。これは関数の型をチェックするためではなく、関数が実際
にはマクロで定義... -
Kernel
# try _ func(func , libs , headers = nil) -> bool (6302.0) -
関数 func がシステムに存在するかどうか検査します。 Kernel#have_func を使ってください。
...関数 func がシステムに存在するかどうか検査します。
Kernel#have_func を使ってください。
@param func 関数名を指定します。
@param libs ライブラリの名前を指定します。
@param headers 関数 func を使用するのに必要なヘッダファイ... -
Kernel
# try _ func(func , libs , headers = nil) { . . . } -> bool (6302.0) -
関数 func がシステムに存在するかどうか検査します。 Kernel#have_func を使ってください。
...関数 func がシステムに存在するかどうか検査します。
Kernel#have_func を使ってください。
@param func 関数名を指定します。
@param libs ライブラリの名前を指定します。
@param headers 関数 func を使用するのに必要なヘッダファイ... -
Kernel
# try _ run(src , opt = "") -> bool | nil (6202.0) -
与えられたソースコードが、コンパイルやリンクできるかどうか検査します。
与えられたソースコードが、コンパイルやリンクできるかどうか検査します。
以下の全ての検査に成功した場合は、真を返します。そうでない場合は偽を返します。
* src が C のソースとしてコンパイルできるか
* 生成されたオブジェクトが依存しているライブラリとリンクできるか
* リンクしたファイルが実行可能かどうか
* 実行ファイルがきちんと存在しているかどうか
ブロックを与えた場合、そのブロックはコンパイル前に評価されます。
ブロック内でソースコードを変更することができます。
@param src C のソースコードを指定します。
@param opt リンカに渡す... -
Kernel
# try _ run(src , opt = "") { . . . } -> bool | nil (6202.0) -
与えられたソースコードが、コンパイルやリンクできるかどうか検査します。
与えられたソースコードが、コンパイルやリンクできるかどうか検査します。
以下の全ての検査に成功した場合は、真を返します。そうでない場合は偽を返します。
* src が C のソースとしてコンパイルできるか
* 生成されたオブジェクトが依存しているライブラリとリンクできるか
* リンクしたファイルが実行可能かどうか
* 実行ファイルがきちんと存在しているかどうか
ブロックを与えた場合、そのブロックはコンパイル前に評価されます。
ブロック内でソースコードを変更することができます。
@param src C のソースコードを指定します。
@param opt リンカに渡す... -
Kernel
# check _ signedness(type , headers = nil , opts = nil) -> "signed" | "unsigned" | nil (202.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.
...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 i......nteger 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.... -
Kernel
# check _ signedness(type , headers = nil , opts = nil) { . . . } -> "signed" | "unsigned" | nil (202.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.
...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 i......nteger 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.... -
Kernel
# find _ library(lib , func , *paths) -> bool (202.0) -
関数 func が定義されたライブラリ lib を探します。
...関数 func が定義されたライブラリ lib を探します。
最初はパスを指定せずに探し、
それに失敗したら paths[0] を指定して探し、
それにも失敗したら paths[1] を指定して探し……
というように、リンク可能なライブラリを探......す。
paths を指定しないときは Kernel#have_library と同じ動作です。
@param lib ライブラリ名を指定します。
@param func 関数名を指定します。
nil または空文字列を指定した場合は "main" になります。
@param paths ライブラリ... -
Kernel
# find _ library(lib , func , *paths) { . . . } -> bool (202.0) -
関数 func が定義されたライブラリ lib を探します。
...関数 func が定義されたライブラリ lib を探します。
最初はパスを指定せずに探し、
それに失敗したら paths[0] を指定して探し、
それにも失敗したら paths[1] を指定して探し……
というように、リンク可能なライブラリを探......す。
paths を指定しないときは Kernel#have_library と同じ動作です。
@param lib ライブラリ名を指定します。
@param func 関数名を指定します。
nil または空文字列を指定した場合は "main" になります。
@param paths ライブラリ...