cfad47cfa3/tads3/vmfunc.cpp

4b825dc642cb6eb9a060e54bf8d69288fbee4904cfad47cfa334b206c65f22086bcc5d63e6f70944
1
#ifdef RCSID
2
static char RCSid[] =
3
"$Header$";
4
#endif
5
6
/* 
7
 *   Copyright (c) 1999, 2002 Michael J. Roberts.  All Rights Reserved.
8
 *   
9
 *   Please see the accompanying license file, LICENSE.TXT, for information
10
 *   on using and copying this software.  
11
 */
12
/*
13
Name
14
  vmfunc.cpp - T3 VM function header operations
15
Function
16
  
17
Notes
18
  
19
Modified
20
  11/24/99 MJRoberts  - Creation
21
*/
22
23
#include "vmfunc.h"
24
25
/* ------------------------------------------------------------------------ */
26
/* 
27
 *   Set up an exception table pointer for this function.  Returns true if
28
 *   successful, false if there's no exception table.  
29
 */
30
int CVmFuncPtr::set_exc_ptr(CVmExcTablePtr *exc_ptr) const
31
{
32
    /* set the exception pointer based on my address */
33
    return exc_ptr->set(p_);
34
}
35
36
/*
37
 *   Set up a debug table pointer for this function.  Returns true if
38
 *   successful, false if there's no debug table.  
39
 */
40
int CVmFuncPtr::set_dbg_ptr(CVmDbgTablePtr *dbg_ptr)const
41
{
42
    /* set the debug pointer based on my address */
43
    return dbg_ptr->set(p_);
44
}