mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-04 20:57:49 +00:00
26 lines
366 B
C++
26 lines
366 B
C++
/* Copyright 2003-2006 ROBLOX Corporation, All Rights Reserved */
|
|
|
|
#pragma once
|
|
|
|
#include "rbx/Debug.h"
|
|
|
|
namespace RBX {
|
|
|
|
class KernelIndex {
|
|
protected:
|
|
int kernelIndex;
|
|
|
|
public:
|
|
bool indexInKernel() const {
|
|
return (kernelIndex != -1);
|
|
}
|
|
|
|
KernelIndex() : kernelIndex(-1)
|
|
{}
|
|
|
|
~KernelIndex() {
|
|
RBXASSERT(!indexInKernel());
|
|
}
|
|
};
|
|
|
|
} // namespace
|