summaryrefslogtreecommitdiff
path: root/Examples/test-suite/octave_cell_deref.i
blob: 2e92ec4de21d7b5b05cf152054b5d2ae31934ff1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
%module octave_cell_deref

%inline {
  bool func(const char* s) {
    return !strcmp("hello",s);
  }

 Cell func2() {
   Cell c(1,2);
   c(0) = "hello";
   c(1) = 4;
   return c;
 } 
}