diff options
Diffstat (limited to 'README.EXT')
-rw-r--r-- | README.EXT | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/README.EXT b/README.EXT index b1a816c271..ecc96933a3 100644 --- a/README.EXT +++ b/README.EXT @@ -683,10 +683,10 @@ wrapping DBM* directly, because we want to cache size information. To retrieve the dbmdata structure from a Ruby object, we define the following macro: - #define GetDBM(obj, dbmp) {\ + #define GetDBM(obj, dbmp) do {\ Data_Get_Struct(obj, struct dbmdata, dbmp);\ if (dbmp->di_dbm == 0) closed_dbm();\ - } + } while (0) This sort of complicated macro does the retrieving and close checking for the DBM. |