13
0

timepos_t modulo operator is defined but not implemented

This commit is contained in:
Robin Gareus 2022-01-24 06:50:52 +01:00
parent 90ff5de6e3
commit dd0dcd6d59
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -584,7 +584,7 @@ LuaBindings::common (lua_State* L)
.beginClass <Temporal::timepos_t> ("timepos_t") .beginClass <Temporal::timepos_t> ("timepos_t")
.addConstructor <void (*) (Temporal::samplepos_t)> () .addConstructor <void (*) (Temporal::samplepos_t)> ()
.addOperator ("__add", CPPOPERATOR(Temporal::timepos_t, +)) .addOperator ("__add", CPPOPERATOR(Temporal::timepos_t, +))
.addOperator ("__mod", CPPOPERATOR2(Temporal::timepos_t, Temporal::timepos_t, Temporal::timecnt_t, %)) //.addOperator ("__mod", CPPOPERATOR2(Temporal::timepos_t, Temporal::timepos_t, Temporal::timecnt_t, %))
.addOperator ("__mul", CPPOPERATOR2(Temporal::timepos_t, Temporal::timepos_t, Temporal::ratio_t , *)) .addOperator ("__mul", CPPOPERATOR2(Temporal::timepos_t, Temporal::timepos_t, Temporal::ratio_t , *))
.addOperator ("__div", CPPOPERATOR2(Temporal::timepos_t, Temporal::timepos_t, Temporal::ratio_t , /)) .addOperator ("__div", CPPOPERATOR2(Temporal::timepos_t, Temporal::timepos_t, Temporal::ratio_t , /))
.addOperator ("__lt", CPPCOMPERATOR(Temporal::timepos_t, <)) .addOperator ("__lt", CPPCOMPERATOR(Temporal::timepos_t, <))