// Copyright 2008 Wincent Colaiuta
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>.

#include <ruby/ruby.h>
#include <stdint.h>

// Wikitext
extern VALUE mWikitext;

// Wikitext::Parser
extern VALUE cWikitextParser;

// Wikitext::Parser::Error
// error raised when scanning fails
extern VALUE eWikitextParserError;

// Wikitext::Parser::Token
extern VALUE cWikitextParserToken;

// Copyright 2008 Wincent Colaiuta
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>.

#include <ruby/ruby.h>
#include <stdint.h>

#define ruby_inspect(obj) rb_funcall(rb_mKernel, rb_intern("p"), 1, obj)

// Wikitext
extern VALUE mWikitext;

// Wikitext::Parser
extern VALUE cWikitextParser;

// Wikitext::Parser::Error
// error raised when scanning fails
extern VALUE eWikitextParserError;

// Wikitext::Parser::Token
extern VALUE cWikitextParserToken;

Add ruby_inspect macro for use when debugging
Add ruby_inspect macro for use when debugging

Just calls Kernel#p passing in the specified Ruby object.

Signed-off-by: Wincent Colaiuta <c76ac2e9cd86441713c7dfae92c451f3e6d17fdc@wincent.com>
