Revert "Fix moose_throw_error"
gfx [Wed, 19 Aug 2009 04:36:02 +0000 (13:36 +0900)]
This reverts commit 0ee9b70c49a4bf94700417e1532ae7fab977e0a2.

Moose.xs

index d2d7347..2b4eba7 100644 (file)
--- a/Moose.xs
+++ b/Moose.xs
@@ -101,6 +101,9 @@ moose_throw_error(SV* const klass, SV* const data, const char* const fmt, ...){
         PUSHs(klass);
         mPUSHs(message);
 
+        mPUSHp("depth", sizeof("depth")-1);
+        mPUSHi(-1);
+
         if(data){
             EXTEND(SP, 2);
             mPUSHp("data", sizeof("data")-1);