mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-20 09:03:24 +00:00
Code format
This commit is contained in:
parent
ca86d787b6
commit
edee5e5cda
607 changed files with 30819 additions and 27824 deletions
|
|
@ -21,13 +21,15 @@
|
|||
|
||||
#include "ntop_includes.h"
|
||||
|
||||
template <size_t N> void Bitmap<N>::lua(lua_State *vm, const char *label) const {
|
||||
template <size_t N>
|
||||
void Bitmap<N>::lua(lua_State* vm, const char* label) const {
|
||||
lua_newtable(vm);
|
||||
|
||||
for (u_int i = 0; i < numBits(); i++) {
|
||||
if (isSetBit(i)) {
|
||||
lua_pushboolean(vm, true); /* The boolean indicating this bit is set */
|
||||
lua_pushinteger(vm, i); /* The integer bit id, used as key of this lua table */
|
||||
lua_pushinteger(
|
||||
vm, i); /* The integer bit id, used as key of this lua table */
|
||||
lua_insert(vm, -2);
|
||||
lua_settable(vm, -3);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue