%code
{
+#include <assert.h>
#include <stdlib.h>
#include <string.h>
#if HAVE_UNISTD_H
are stored in a union, from which objects with constructors are
excluded in C++. */
%initial-action {
- @$.initialize (0);
+ @$.initialize ();
}
])])[
power (int base, int exponent)
{
int res = 1;
- if (exponent < 0)
- exit (3);
+ assert (0 <= exponent);
for (/* Niente */; exponent; --exponent)
res *= base;
return res;