~ubuntu-branches/ubuntu/raring/codeblocks/raring-proposed

« back to all changes in this revision

Viewing changes to src/sdk/scripting/sqplus/SquirrelVM.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Cosme Domínguez Díaz
  • Date: 2010-08-09 04:38:38 UTC
  • mfrom: (1.1.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20100809043838-a59ygguym4eg0jgw
Tags: 10.05-0ubuntu1
* New upstream release. Closes (LP: #322350)
 - Switch to dpkg-source 3.0 (quilt) format
 - Remove unneeded README.source
 - Add debian/get-source-orig script that removes all
   Windows prebuilt binaries
* Bump Standards-Version to 3.9.1
 - Stop shipping *.la files
* debian/control
 - Add cdbs package as Build-Depend
 - Add libbz2-dev and zlib1g-dev packages as
   Build-Depends (needed by libhelp_plugin.so)
 - Remove dpatch package of Build-Depends
 - Add codeblocks-contrib-debug package
 - Split architecture-independent files of codeblocks
   package in codeblocks-common package
* debian/rules
 - Switch to CDBS rules system
 - Add parallel build support
 - Add a call to debian/get-source-orig script
 - Use lzma compression (saves 23,5 MB of free space)
* debian/patches
 - Refresh 01_codeblocks_plugin_path
 - Add 02_no_Makefiles_in_debian_dir to remove any link
   in codeblocks build system to deleted Makefiles of debian directory
 - Drop 02_ftbfs_gcc44 and 03_ftbfs_glib221 (merged in upstream)
* debian/watch
 - Update to use the new host (berlios.de)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#include <stdio.h>
 
2
#include <string.h>
2
3
#include <stdarg.h>
3
4
 
4
5
#define _DEBUG_DUMP
21
22
SQInteger SquirrelVM::_CallState = -1;
22
23
SquirrelObject * SquirrelVM::_root = NULL;
23
24
 
24
 
SquirrelError::SquirrelError() 
 
25
SquirrelError::SquirrelError()
25
26
{
26
27
        const SQChar *s;
27
28
        sq_getlasterror(SquirrelVM::_VM);
131
132
        }
132
133
        sq_pop(_VM,1);
133
134
        throw SquirrelError();
134
 
        
 
135
 
135
136
}
136
137
 
137
138
 
204
205
SquirrelObject SquirrelVM::EndCall()
205
206
{
206
207
        SquirrelObject ret;
207
 
        if(_CallState >= 0) { 
 
208
        if(_CallState >= 0) {
208
209
                SQInteger oldtop = sq_gettop(_VM);
209
210
                SQInteger nparams = _CallState;
210
211
                _CallState = -1;
215
216
                        sq_settop(_VM,oldtop-(nparams+1));
216
217
                        throw SquirrelError();
217
218
                }
218
 
                
 
219
 
219
220
        }
220
221
        return ret;
221
222
}