Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
From 0959678787847fcb290c7ba1f11217a825577dde Mon Sep 17 00:00:00 2001 From: Daniel Luz <dev@mernen.com> Date: Thu, 7 Aug 2008 13:57:23 -0300 Subject: [PATCH] Changed VM::raise_from_errno signature to use const char*. --- vm/vm.cpp | 2 +- vm/vm.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vm/vm.cpp b/vm/vm.cpp index bbd568a..3eb0640 100644 --- a/vm/vm.cpp +++ b/vm/vm.cpp @@ -120,7 +120,7 @@ namespace rubinius { return globals.current_task->active->block; } - void VM::raise_from_errno(char* msg) { + void VM::raise_from_errno(const char* msg) { // TODO: implement me } diff --git a/vm/vm.hpp b/vm/vm.hpp index f049854..6ddfeb5 100644 --- a/vm/vm.hpp +++ b/vm/vm.hpp @@ -75,7 +75,7 @@ namespace rubinius { void run_best_thread(); void queue_thread(Thread* thread); void activate_thread(Thread* thread); - void raise_from_errno(char* reason); + void raise_from_errno(const char* reason); void raise_exception(Exception* exc); Exception* new_exception(Class* cls, const char* msg); OBJECT current_block(); -- 1.5.4.3
This paste will be private.
From the Design Piracy series on my blog: