feat: add more guard and const in lowlevel
This commit is contained in:
@@ -105,9 +105,9 @@ bool WFProgramQueryExt(Token in_program, View in_view, size_t in_index, Token *o
|
||||
|
||||
bool WFExtStatusDestroy(Token in_ext_status);
|
||||
|
||||
bool WFExtStatuGetName(Token in_ext_status, CStyleString *out_name);
|
||||
bool WFExtStatusGetName(Token in_ext_status, CStyleString *out_name);
|
||||
|
||||
bool WFExtStatuGetIcon(Token in_ext_status, HICON *out_icon);
|
||||
bool WFExtStatusGetIcon(Token in_ext_status, HICON *out_icon);
|
||||
|
||||
#ifdef __cplusplus
|
||||
} // extern "C"
|
||||
|
||||
@@ -577,7 +577,7 @@ pub extern "C" fn WFExtStatusDestroy(in_ext_status: in_param_ty!(Token)) -> bool
|
||||
}
|
||||
|
||||
#[unsafe(no_mangle)]
|
||||
pub extern "C" fn WFExtStatuGetName(
|
||||
pub extern "C" fn WFExtStatusGetName(
|
||||
in_ext_status: in_param_ty!(Token),
|
||||
out_name: out_param_ty!(CStyleString),
|
||||
) -> bool {
|
||||
@@ -591,7 +591,7 @@ pub extern "C" fn WFExtStatuGetName(
|
||||
}
|
||||
|
||||
#[unsafe(no_mangle)]
|
||||
pub extern "C" fn WFExtStatuGetIcon(
|
||||
pub extern "C" fn WFExtStatusGetIcon(
|
||||
in_ext_status: in_param_ty!(Token),
|
||||
out_icon: out_param_ty!(HICON),
|
||||
) -> bool {
|
||||
|
||||
Reference in New Issue
Block a user