You might be able to do something like
# at the start of the function
if index_t is int32_t and common_t is not klu_common:
assert False
return
Whether that works or not depends on exactly when the dead-code elimination happens for fused functions (and whether that happens before or after your compile error). But it's probably worth a try.
I don't know another way to do it off the top of my head.
David
--
---
You received this message because you are subscribed to the Google Groups "cython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cython-users...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/cython-users/83b568ef-58f2-49da-b411-3558ea81e442n%40googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "cython-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cython-users/aPPa_4QGzyI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cython-users...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/cython-users/a29c2e30-39e2-4d16-ae2b-6415705ed79e%40d-woods.co.uk.