Skip to content

Commit bb3b736

Browse files
authored
Fix SortFunc2D typedef
1 parent 7cc3923 commit bb3b736

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

plugins/include/sorting.inc

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,7 @@ native void SortCustom1D(int[] array, int array_size, SortFunc1D sortfunc, any d
119119
* 0 if first is equal to second
120120
* 1 if first should go after second
121121
*/
122-
typeset SortFunc2D
123-
{
124-
function int (int[] elem1, int[] elem2, const int[][] array, any data);
125-
function int (char[] elem1, char[] elem2, const char[][] array, any data);
126-
};
122+
typedef SortFunc2D = function int (any[] elem1, any[] elem2, const any[][] array, any data);
127123

128124
/**
129125
* Sorts a custom 2D array. You must pass in a comparison function.

0 commit comments

Comments
 (0)