aboutsummaryrefslogtreecommitdiff
path: root/src/lua/common/je_lua_shared.cpp
blob: 62dfab9928ead94e471d4658d1589bdb0d9d528e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include "je_lua.h"
#include "je_lua_shared.hpp"
#include "libjin/jin.h"

namespace JinEngine
{
    namespace Lua
    {

        void Shared::retain()
        {
            ++mCount;
        }

        void Shared::release()
        {
            if (--mCount <= 0)
            {
                delete this;
            }
        }

    }
}