Skip to content

Commit

Permalink
put comment in right file
Browse files Browse the repository at this point in the history
  • Loading branch information
leon-xd committed Jan 15, 2025
1 parent f17f5e7 commit 1e59238
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions crates/wdk-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ const WDFFUNCTIONS_SYMBOL_NAME_PLACEHOLDER: &str =
const WDF_FUNCTION_COUNT_PLACEHOLDER: &str =
"<PLACEHOLDER FOR EXPRESSION FOR NUMBER OF WDF FUNCTIONS IN `wdk_sys::WdfFunctions`";

const WDF_FUNCTION_COUNT_DECLARATION_EXTERNAL_SYMBOL: &str =
"(unsafe { crate::WdfFunctionCount }) as usize";

const WDF_FUNCTION_COUNT_DECLARATION_TABLE_INDEX: &str = "// SAFETY: `crate::WdfFunctionCount` is \
const WDF_FUNCTION_COUNT_DECLARATION_EXTERNAL_SYMBOL: &str ="// SAFETY: `crate::WdfFunctionCount` is \
generated as a mutable static, but is \
not supposed to be ever mutated by WDF.
crate::_WDFFUNCENUM::WdfFunctionTableNumEntries as usize";
(unsafe { crate::WdfFunctionCount }) as usize";

const WDF_FUNCTION_COUNT_DECLARATION_TABLE_INDEX: &str =
"crate::_WDFFUNCENUM::WdfFunctionTableNumEntries as usize";

static WDF_FUNCTION_COUNT_FUNCTION_TEMPLATE: LazyLock<String> = LazyLock::new(|| {
format!(
Expand Down

0 comments on commit 1e59238

Please sign in to comment.