Skip to content

Commit

Permalink
Maybe fix CodeTokeniser on MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiashienzsch committed Oct 20, 2023
1 parent aba8e29 commit 72ccac6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions module/lua_juce_gui_extra/code_editor/CodeTokeniser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ namespace lua_juce {
auto juce_CodeTokeniser(sol::table& state) -> void
{
auto tokeniser = state.new_usertype<juce::CodeTokeniser>("InternalCodeTokeniser", sol::no_constructor);
tokeniser["readNextToken"] = LUA_JUCE_C_CALL(&juce::CodeTokeniser::readNextToken);
tokeniser["getDefaultColourScheme"] = LUA_JUCE_C_CALL(&juce::CodeTokeniser::getDefaultColourScheme);
tokeniser["readNextToken"] = &juce::CodeTokeniser::readNextToken;
tokeniser["getDefaultColourScheme"] = &juce::CodeTokeniser::getDefaultColourScheme;
}

} // namespace lua_juce

0 comments on commit 72ccac6

Please sign in to comment.