[ create a new paste ] login | about

Link: http://codepad.org/Lzm6Pr7b    [ raw code | fork ]

C, pasted on May 11:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
static int lua_sb_debug_messages_enabled(lua_State *l)
{
    if (SB_LOG_IS_ACTIVE(SB_LOGLEVEL_DEBUG)) {
        lua_pushboolean(l, 1);
    } else {
        lua_pushboolean(l, 0);
    }
    return 1;
}

static int lua_sb_debug_messages_enabled(lua_State *l)
{
    lua_pushboolean(l, SB_LOG_IS_ACTIVE(SB_LOGLEVEL_DEBUG));
    return 1;
}


Create a new paste based on this one


Comments: