root/src/VM/cil/cilVMHandler.cpp

Revision 138, 1.6 kB (checked in by hak, 2 years ago)

- Added CCilVm::reset()
- Fixed VM status management (ticket #5)
- Fixed API names not to have upper case as 1st letter.
- Fixed sample build break
- Added new sample, "vm_contol" to demonstrate VM status control API

Line 
1 /****************************************************************************
2  *
3  * CRI Middleware SDK
4  *
5  * Copyright (c) 2008 CRI Middleware, Inc. All rights reserved.
6  *
7  * Use, modification and distribution are subject to the CRI Script Software
8  * License, Version 1.0(see accompanying file "CriScript_License_1_0.txt" or
9  * copy at www.criscript.com/trac/wiki/CRI%20Script%20Software%20License%201.0 ).
10  *
11  *
12  * Library  : CRIScript
13  * Module   : cil Virtual Machine
14  * File     : cilVMHandler.cpp
15  * Date     :
16  * Version  :
17  *
18  ****************************************************************************/
19
20 /***************************************************************************
21  *      Include file
22  ***************************************************************************/
23 #include "stdafx.h"
24 #include "criScript.h"
25 #include "cilVM.h"
26 namespace cri {
27 /***************************************************************************
28  *      Variables
29  ***************************************************************************/
30
31 /***************************************************************************
32  *      Methods
33  ***************************************************************************/
34 VM_HANDLER_CALLBACK CCilVm::registerHandler( VM_HANDLER_TYPE handlertype, VM_HANDLER_CALLBACK pCallBack )
35 {
36         if( handlertype >= VM_HANDLER_MAX )
37         {
38                 Debug_Warning( "Illegal Handler Type" );
39                 return NULL;
40         }
41         VM_HANDLER_CALLBACK pCurrentCallBack = m_Handler[ handlertype ];
42         m_Handler[ handlertype ] = pCallBack;
43         return pCurrentCallBack;
44
45 }
46
47
48 } //namespace CRI
Note: See TracBrowser for help on using the browser.