Permalink
Browse files

Store file and line number where exception point is placed

  • Loading branch information...
1 parent f89a86b commit 75090fbb5a7bd691e87352c67d2b3fd9a830d9cd @dbussink dbussink committed Oct 19, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 vm/exception_point.hpp
View
@@ -14,6 +14,8 @@ namespace rubinius {
public:
jmp_buf __jump_buffer;
+ const char* file;
+ int line;
public:
ExceptionPoint(NativeMethodEnvironment* env);
@@ -36,6 +38,6 @@ namespace rubinius {
};
}
-#define PLACE_EXCEPTION_POINT(ep) set_jump(ep.__jump_buffer)
+#define PLACE_EXCEPTION_POINT(ep) ep.file = __FILE__; ep.line = __LINE__; set_jump(ep.__jump_buffer)
#endif

0 comments on commit 75090fb

Please sign in to comment.