file:rawhandle

LuaFAR 3

file:rawhandle


rh = file:rawhandle()

Parameters:
  none

Returns:
  rh:      light userdata

Description:
  This is an additional method of a file handle returned by io.open function.
  It returns the value of FILE* that is suitable for using with LuaJIT FFI.

Note:
  file:rawhandle() throws an error in non-GCC compilations.
  This is to prevent a crash caused by incompatible runtime libraries.