[−][src]Function slang_sys::spAddTranslationUnit
pub unsafe extern "C" fn spAddTranslationUnit(
request: *mut SlangCompileRequest,
language: SlangSourceLanguage,
name: *const c_char
) -> c_int
Add a distinct translation unit to the compilation request
name
is optional.
Returns the zero-based index of the translation unit created.