Skip to content

Commit

Permalink
don't pushnull for ()
Browse files Browse the repository at this point in the history
  • Loading branch information
catornot committed Apr 23, 2024
1 parent 6674181 commit 8bb9636
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/high/squirrel_traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,7 @@ impl PushToSquirrelVm for () {
const DEFAULT_RESULT: SQRESULT = SQRESULT::SQRESULT_NULL;

#[inline]
fn push_to_sqvm(self, sqvm: NonNull<HSquirrelVM>, sqfunctions: &SquirrelFunctions) {
unsafe { (sqfunctions.sq_pushnull)(sqvm.as_ptr()) };
}
fn push_to_sqvm(self, sqvm: NonNull<HSquirrelVM>, sqfunctions: &SquirrelFunctions) {}
}

// Return Trait
Expand Down

0 comments on commit 8bb9636

Please sign in to comment.