New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
c_converter: Function template for numeric fields, add v3s16 default #7090
Conversation
Thanks for this. |
src/script/common/c_converter.h
Outdated
} | ||
|
||
template<class T> | ||
bool getv3field(lua_State *L, int index, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe the name should make it clear it is for v3 ints? getv3intField
? We might add a 'get v3 float field' later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right. Changed that one.
Thanks for doing better C++ :) |
Simplifies the c_converter functions to templates which can not be anywhere else than in headers.
Also adds an implementation of
getv3s16field_default
for #7070How to test