Commit 5e0facb6 authored by Robert Bradshaw's avatar Robert Bradshaw

Simplify switch transform test.

parent 96e2c88b
......@@ -3,10 +3,10 @@
import cython
cdef extern from "../run/includes/switch_transform_support.h":
cdef extern from *:
enum:
ONE
ONE_AGAIN
ONE "1"
ONE_AGAIN "1+0"
def is_not_one(int i):
return i != ONE and i != ONE_AGAIN
......
#ifndef SWITCH_TRANSFORM_SUPPORT_H_
#define SWITCH_TRANSFORM_SUPPORT_H_ 1
enum {
ONE=1,
ONE_AGAIN=1
};
#endif /* SWITCH_TRANSFORM_SUPPORT_H_ */
# cython: optimize.use_switch=False
cdef extern from "includes/switch_transform_support.h":
cdef extern from *:
enum:
ONE
ONE_AGAIN
ONE "1"
ONE_AGAIN "1+0"
def is_not_one(int i):
"""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment