mirror of
https://github.com/corda/corda.git
synced 2025-01-08 14:03:06 +00:00
c80eb51c17
Conflicts: makefile src/assembler.h src/compile.cpp src/compiler.cpp src/compiler.h src/finder.cpp
28 lines
642 B
C++
28 lines
642 B
C++
/* Copyright (c) 2008, Avian Contributors
|
|
|
|
Permission to use, copy, modify, and/or distribute this software
|
|
for any purpose with or without fee is hereby granted, provided
|
|
that the above copyright notice and this permission notice appear
|
|
in all copies.
|
|
|
|
There is NO WARRANTY for this software. See license.txt for
|
|
details. */
|
|
|
|
#ifndef ALLOCATOR_H
|
|
#define ALLOCATOR_H
|
|
|
|
#include "common.h"
|
|
|
|
namespace vm {
|
|
|
|
class Allocator {
|
|
public:
|
|
virtual void* tryAllocate(unsigned size) = 0;
|
|
virtual void* allocate(unsigned size) = 0;
|
|
virtual void free(const void* p, unsigned size) = 0;
|
|
};
|
|
|
|
} // namespace vm
|
|
|
|
#endif//ALLOCATOR_H
|