pluto-src 0.1.1+0.10.4

Sources of Pluto (Lua 5.4 dialect) and logic to build it.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "Capture.hpp"

#include "Exception.hpp"

NAMESPACE_SOUP
{
	void Capture::validate() const
	{
#if SOUP_BITS == 64
		if (reinterpret_cast<uintptr_t>(data) == 0xdddddddddddddddd)
#else
		if (reinterpret_cast<uintptr_t>(data) == 0xdddddddd)
#endif
		{
			SOUP_THROW(Exception("Attempt to use Capture after it has been free'd"));
		}
	}
}