chiark / gitweb /
reusable method for checking if a value is a resId or not