blob: 773e7adfda9a1831237d98d137eec0dbe6c64de5 (
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
#ifndef __ASURA_ENGINE_PORTABLE_H__
#define __ASURA_ENGINE_PORTABLE_H__
#include "Config.h"
#include "Luax.hpp"
#include "Type.h"
namespace AsuraEngine
{
namespace Scripting
{
template<typename T>
class Portable : public Luax::LuaxClass<T>
{
public:
Portable();
virtual ~Portable();
void Retain();
void Release();
private:
///
/// ̱߳luagc߳˴native objectdelete
///
int mRefCount;
///
/// deleteգ̳portable࣬ʹdeleteֻʹRelease
///
bool mSafer;
};
#include "portable.inl"
}
}
#endif
|