newline if puts with no params
@@ -385,9 +385,13 @@ static void c_p(mrb_vm *vm, mrb_value v[], int argc)
static void c_puts(mrb_vm *vm, mrb_value v[], int argc)
{
int i;
+ if( argc ){
for( i = 1; i <= argc; i++ ) {
if( mrbc_puts_sub( &v[i] ) == 0 ) console_putchar('\n');
}
+ } else {
+ console_putchar('\n');
+ }
}
