summaryrefslogtreecommitdiff
path: root/project2/common/library.h
blob: 7db730baa9950196658097bcf409550db02696c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef LIBRARY_LOADER_H
#define LIBRARY_LOADER_H

#include "scriptLoader.h"
#include "exceptions.h"

SimpleMessage2Exception(LoadLibraryFailed);
SimpleMessage2Exception(UnloadLibraryFailed);

class Library : public SourceObject {
	public:
		Library(ScriptNodePtr p);
		~Library();

	private:
		Variable path;
		void * handle;
};
extern STORAGEOF(Library) libraries;

#endif