Skip to content

Commit a7b8948

Browse files
authored
Update basic_pro.cpp: throw with LUN and no arguments.
1 parent 1e9f457 commit a7b8948

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/basic_pro.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -758,6 +758,7 @@ namespace lib {
758758
void flush_lun(EnvT* e) {
759759
// within GDL, always lun+1 is used
760760
int nParam = e->NParam();
761+
if (nParam == 0) e->Throw("Incorrect number of arguments.");
761762
for (int p = 0; p < nParam; p++) {
762763
DLong lun;
763764
e->AssureLongScalarPar(p, lun);

0 commit comments

Comments
 (0)