/trunk/Examples/test-suite/li_constraints.i

# · Swig · 35 lines · 16 code · 8 blank · 11 comment · 0 complexity · 11a8cc03ff2f655676dea2cc4f16615c MD5 · raw file

  1. %module li_constraints
  2. %include <constraints.i>
  3. %inline %{
  4. void test_nonnegative(double NONNEGATIVE) {
  5. }
  6. void test_nonpositive(double NONPOSITIVE) {
  7. }
  8. void test_positive(double POSITIVE) {
  9. }
  10. void test_negative(double POSITIVE) {
  11. }
  12. void test_nonzero(double NONZERO) {
  13. }
  14. void test_nonnull(void *NONNULL) {
  15. }
  16. /* These generated non-portable code and there isn't an obvious fix
  17. void test_align8(void *ALIGN8) {
  18. }
  19. void test_align4(void *ALIGN4) {
  20. }
  21. void test_align2(void *ALIGN2) {
  22. }
  23. */
  24. %}