MCPcopy Create free account
hub / github.com/Tencent/xLua / div

Method div

Test/UnitTest/xLuaTest/LuaCallCS/CSObjectForLuaCallCS.cs:121–128  ·  view source on GitHub ↗
(int a, int b)

Source from the content-addressed store, hash-verified

119 {
120 public int key5;
121 public int div(int a, int b)
122 {
123 if (b != 0) {
124 return a / b;
125 } else {
126 return 0;
127 }
128 }
129
130 public int sub(int a, int b)
131 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected