Blender V2.61 - r43446
Defines

BLI_utildefines.h File Reference

Go to the source code of this file.

Defines

#define FALSE   0
#define TRUE   1
#define ELEM(a, b, c)   ( (a)==(b) || (a)==(c) )
#define ELEM3(a, b, c, d)   ( ELEM(a, b, c) || (a)==(d) )
#define ELEM4(a, b, c, d, e)   ( ELEM(a, b, c) || ELEM(a, d, e) )
#define ELEM5(a, b, c, d, e, f)   ( ELEM(a, b, c) || ELEM3(a, d, e, f) )
#define ELEM6(a, b, c, d, e, f, g)   ( ELEM(a, b, c) || ELEM4(a, d, e, f, g) )
#define ELEM7(a, b, c, d, e, f, g, h)   ( ELEM3(a, b, c, d) || ELEM4(a, e, f, g, h) )
#define ELEM8(a, b, c, d, e, f, g, h, i)   ( ELEM4(a, b, c, d, e) || ELEM4(a, f, g, h, i) )
#define ELEM9(a, b, c, d, e, f, g, h, i, j)   ( ELEM4(a, b, c, d, e) || ELEM5(a, f, g, h, i, j) )
#define ELEM10(a, b, c, d, e, f, g, h, i, j, k)   ( ELEM4(a, b, c, d, e) || ELEM6(a, f, g, h, i, j, k) )
#define ELEM11(a, b, c, d, e, f, g, h, i, j, k, l)   ( ELEM4(a, b, c, d, e) || ELEM7(a, f, g, h, i, j, k, l) )
#define SHIFT3(type, a, b, c)   { type tmp; tmp = a; a = c; c = b; b = tmp; }
#define SHIFT4(type, a, b, c, d)   { type tmp; tmp = a; a = d; d = c; c = b; b = tmp; }
#define MIN2(x, y)   ( (x)<(y) ? (x) : (y) )
#define MIN3(x, y, z)   MIN2( MIN2((x),(y)) , (z) )
#define MIN4(x, y, z, a)   MIN2( MIN2((x),(y)) , MIN2((z),(a)) )
#define MAX2(x, y)   ( (x)>(y) ? (x) : (y) )
#define MAX3(x, y, z)   MAX2( MAX2((x),(y)) , (z) )
#define MAX4(x, y, z, a)   MAX2( MAX2((x),(y)) , MAX2((z),(a)) )
#define INIT_MINMAX(min, max)
#define INIT_MINMAX2(min, max)
#define DO_MIN(vec, min)
#define DO_MAX(vec, max)
#define DO_MINMAX(vec, min, max)
#define DO_MINMAX2(vec, min, max)
#define SWAP(type, a, b)   { type sw_ap; sw_ap=(a); (a)=(b); (b)=sw_ap; }
#define ABS(a)   ( (a)<0 ? (-(a)) : (a) )
#define FTOCHAR(val)   ((val)<=0.0f)? 0 : (((val)>(1.0f-0.5f/255.0f))? 255 : (char)((255.0f*(val))+0.5f))
#define FTOUSHORT(val)   ((val >= 1.0f-0.5f/65535)? 65535: (val <= 0.0f)? 0: (unsigned short)(val*65535.0f + 0.5f))
#define USHORTTOUCHAR(val)   ((unsigned char)(((val) >= 65535-128)? 255: ((val)+128)>>8))
#define F3TOCHAR3(v2, v1)
#define F3TOCHAR4(v2, v1)
#define F4TOCHAR4(v2, v1)
#define VECCOPY(v1, v2)
#define VECCOPY2D(v1, v2)
#define QUATCOPY(v1, v2)
#define VECADD(v1, v2, v3)
#define VECSUB(v1, v2, v3)
#define VECSUB2D(v1, v2, v3)
#define VECADDFAC(v1, v2, v3, fac)
#define VECSUBFAC(v1, v2, v3, fac)
#define QUATADDFAC(v1, v2, v3, fac)
#define INPR(v1, v2)   ( (v1)[0]*(v2)[0] + (v1)[1]*(v2)[1] + (v1)[2]*(v2)[2] )
#define CLAMP(a, b, c)   if((a)<(b)) (a)=(b); else if((a)>(c)) (a)=(c)
#define CLAMPIS(a, b, c)   ((a)<(b) ? (b) : (a)>(c) ? (c) : (a))
#define CLAMPTEST(a, b, c)   if((b)<(c)) {CLAMP(a, b, c);} else {CLAMP(a, c, b);}
#define IS_EQ(a, b)   ((fabs((double)(a)-(b)) >= (double) FLT_EPSILON) ? 0 : 1)
#define IS_EQF(a, b)   ((fabsf((float)(a)-(b)) >= (float) FLT_EPSILON) ? 0 : 1)
#define IS_EQT(a, b, c)   ((a > b)? (((a-b) <= c)? 1:0) : ((((b-a) <= c)? 1:0)))
#define IN_RANGE(a, b, c)   ((b < c)? ((b<a && a<c)? 1:0) : ((c<a && a<b)? 1:0))
#define IN_RANGE_INCL(a, b, c)   ((b < c)? ((b<=a && a<=c)? 1:0) : ((c<=a && a<=b)? 1:0))
#define ARRAY_LAST_ITEM(arr_start, arr_dtype, elem_size, tot)   (arr_dtype *)((char*)arr_start + (elem_size*(tot - 1)))
#define ARRAY_HAS_ITEM(item, arr_start, arr_dtype, elem_size, tot)
#define SWITCH_INT64(a)
#define SWITCH_INT(a)
#define SWITCH_SHORT(a)
#define SET_INT_IN_POINTER(i)   ((void*)(intptr_t)(i))
#define GET_INT_FROM_POINTER(i)   ((int)(intptr_t)(i))
#define STRINGIFY_ARG(x)   #x
#define STRINGIFY(x)   STRINGIFY_ARG(x)
#define AT   __FILE__ ":" STRINGIFY(__LINE__)
#define UNUSED(x)   UNUSED_ ## x
#define UNUSED_FUNCTION(x)   UNUSED_ ## x
#define WARN_UNUSED
#define BM_INLINE   static
#define _dummy_abort()   (void)0
#define BLI_assert(a)
#define LIKELY(x)   (x)
#define UNLIKELY(x)   (x)

Detailed Description

Definition in file BLI_utildefines.h.


Define Documentation

#define _dummy_abort ( )    (void)0

Definition at line 279 of file BLI_utildefines.h.

#define ABS (   a)    ( (a)<0 ? (-(a)) : (a) )

Definition at line 107 of file BLI_utildefines.h.

Referenced by _final_goal(), _scan_for_ext_spring_forces(), _softbody_calc_forces_slice_in_a_thread(), actionzone_modal(), add_filt_passes(), add_transp_speed(), LbmFsgrSolver::advanceParticles(), calc_view_vector(), ControlParticles::calculateCpInfluenceOpt(), channelFindMaxd(), channelFindMaxf(), channelFindMaxi(), check_non_flat_quads(), choose_winner(), cloth_bvh_objcollision(), cloth_calc_spring_force(), collision_compute_barycentric(), convex(), createSlideVerts(), createTransEditVerts(), LbmFsgrSolver::debugDisplayNode(), doMirrorOnAxis(), draw_image_seq(), draw_volume(), dvar_eval_rotDiff(), ED_markers_find_nearest_marker(), ed_preview_draw_rect(), effector_falloff(), BasicVector::equal(), equal(), fdrawbezier(), ControlParticles::finishControl(), LbmFsgrSolver::handleCpdata(), handleNumInput(), LbmFsgrSolver::initializeSolverMemory(), ntlGeometryObject::initMovingPoints(), ntlGeometryObject::initMovingPointsAnim(), LbmFsgrSolver::initStandingFluidGradient(), LbmFsgrSolver::mainLoop(), merge_transp_passes(), mouse_select_eval_buffer(), node_link_bezier_points(), RE_filter_value(), RE_zbuf_accumulate_vecblur(), region_azone_icon(), region_scale_modal(), removeDoublesPeel(), reweightArc(), sb_detect_face_pointCached(), set_phong_threshold(), sk_detectMergeGesture(), sk_snapPointStroke(), sk_stroke_filtermval(), softbody_apply_forces(), softbody_calc_forces(), softbody_step(), LbmFsgrSolver::stepMain(), ui_but_float_precision(), ui_but_start_drag(), ui_do_but_COLORBAND(), ui_link_bezier_points(), ui_textedit_step_utf8(), UI_view2d_curRect_validate_resize(), view_ghost_border_exec(), weld_align_uv(), wm_gesture_evaluate(), and wm_handlers_do().

#define ARRAY_HAS_ITEM (   item,
  arr_start,
  arr_dtype,
  elem_size,
  tot 
)
Value:
(          \
        (item >= arr_start) &&                                                \
        (item <= ARRAY_LAST_ITEM(arr_start, arr_dtype, elem_size, tot))       \
    )

Definition at line 193 of file BLI_utildefines.h.

#define ARRAY_LAST_ITEM (   arr_start,
  arr_dtype,
  elem_size,
  tot 
)    (arr_dtype *)((char*)arr_start + (elem_size*(tot - 1)))

Definition at line 190 of file BLI_utildefines.h.

Referenced by get_fcurve_end_keyframes().

#define AT   __FILE__ ":" STRINGIFY(__LINE__)

Definition at line 234 of file BLI_utildefines.h.

Referenced by image_load_sequence_file().

#define BLI_assert (   a)
Value:
(void)((!(a)) ?  (                                                        \
        (                                                                     \
        fprintf(stderr,                                                       \
            "BLI_assert failed: %s, %d at \'%s\'\n",                          \
            __FILE__, __LINE__, STRINGIFY(a)),                                \
        _dummy_abort(),                                                       \
        NULL)) : NULL)

Definition at line 291 of file BLI_utildefines.h.

Referenced by animdata_filter_dopesheet_ob(), animdata_filter_dopesheet_scene(), animdata_filter_ds_keyanim(), animdata_filter_ds_materials(), animdata_filter_ds_nodetree(), animdata_filter_ds_obanim(), animdata_filter_ds_obdata(), animdata_filter_ds_particles(), animdata_filter_ds_scene(), animdata_filter_ds_textures(), animdata_filter_ds_world(), animdata_filter_gpencil(), animfilter_act_group(), append_named_part(), assign_material(), assign_material_id(), backdrawview3d(), BKE_mesh_validate_arrays(), BLI_get_folder_version(), BPY_app_handlers_struct(), BPY_atexit_register(), BPY_atexit_unregister(), bpy_import_init(), bpy_prop_update_cb(), calc_fcurve_bounds(), calc_fcurve_range(), Color_mul(), cp_key(), CustomData_update_typemap(), defvert_remap(), do_key(), do_rel_key(), dvert_mirror_op(), ED_vgroup_mirror(), foreach_getset(), gp_layer_to_curve(), group_sort_exec(), icon_draw_rect(), IMB_buffer_byte_from_byte(), IMB_buffer_byte_from_float(), IMB_buffer_float_from_byte(), IMB_buffer_float_from_float(), IMB_convert_profile(), IMB_partial_rect_from_float(), IMB_rect_from_float(), key_pointer_size(), lattice_get_deform_verts(), manipulator_setcolor(), Matrix_mul(), object_handle_update(), object_remove_material_slot(), paste_mtex_copybuf(), pyrna_func_call(), pyrna_prop_array_subscript_slice(), pyrna_struct_getattro(), python_script_exec(), Quaternion_mul(), rearrange_animchannel_flatten_islands(), RNA_def_float_rotation(), rna_id_write_error(), rna_idp_path(), rna_path_from_ID_to_idpgroup(), RNA_property_boolean_get(), RNA_property_boolean_get_array(), RNA_property_boolean_get_default(), RNA_property_boolean_get_default_array(), RNA_property_boolean_get_default_index(), RNA_property_boolean_get_index(), RNA_property_boolean_set(), RNA_property_boolean_set_array(), RNA_property_boolean_set_index(), RNA_property_collection_add(), RNA_property_collection_assign_int(), RNA_property_collection_begin(), RNA_property_collection_clear(), RNA_property_collection_length(), RNA_property_collection_lookup_index(), RNA_property_collection_lookup_int(), RNA_property_collection_lookup_string(), RNA_property_collection_move(), RNA_property_collection_raw_array(), RNA_property_collection_remove(), RNA_property_collection_type_get(), RNA_property_enum_get(), RNA_property_enum_get_default(), RNA_property_enum_py_data_get(), RNA_property_enum_set(), RNA_property_float_get(), RNA_property_float_get_array(), RNA_property_float_get_default(), RNA_property_float_get_default_array(), RNA_property_float_get_default_index(), RNA_property_float_get_index(), RNA_property_float_set(), RNA_property_float_set_array(), RNA_property_float_set_index(), RNA_property_int_get(), RNA_property_int_get_array(), RNA_property_int_get_default_array(), RNA_property_int_get_index(), RNA_property_int_set(), RNA_property_int_set_array(), RNA_property_int_set_index(), RNA_property_pointer_add(), RNA_property_pointer_get(), RNA_property_pointer_remove(), RNA_property_pointer_set(), RNA_property_string_default_length(), RNA_property_string_get(), RNA_property_string_get_alloc(), RNA_property_string_get_default(), RNA_property_string_get_default_alloc(), RNA_property_string_length(), RNA_property_string_set(), round_box__edges(), scaledownx(), scaledowny(), set_active_group_exec(), tree_element_active_defgroup(), UI_make_axis_color(), uiItemsFullEnumO(), Vector_mul(), vgroup_do_remap(), vgroup_edit_lattice(), vpaint_blend_tool(), weight_sample_group_exec(), wm_link_append_exec(), WM_read_file(), wpaint_blend_tool(), wpaint_make_validmap(), and wpaint_stroke_test_start().

#define BM_INLINE   static

Definition at line 268 of file BLI_utildefines.h.

#define CLAMP (   a,
  b,
 
)    if((a)<(b)) (a)=(b); else if((a)>(c)) (a)=(c)

Definition at line 178 of file BLI_utildefines.h.

#define CLAMPIS (   a,
  b,
 
)    ((a)<(b) ? (b) : (a)>(c) ? (c) : (a))
#define CLAMPTEST (   a,
  b,
 
)    if((b)<(c)) {CLAMP(a, b, c);} else {CLAMP(a, c, b);}

Definition at line 180 of file BLI_utildefines.h.

#define DO_MAX (   vec,
  max 
)
Value:
{                                                    \
        if( (max)[0]<(vec)[0] ) (max)[0]= (vec)[0];                           \
        if( (max)[1]<(vec)[1] ) (max)[1]= (vec)[1];                           \
        if( (max)[2]<(vec)[2] ) (max)[2]= (vec)[2];                           \
    }

Definition at line 81 of file BLI_utildefines.h.

Referenced by BuildBinaryVBVH< Node >::_transform(), bvh_node_merge_bb(), bvh_refit(), RE_rayobject_blibvh_add(), RE_rayobject_blibvh_bb(), rtbuild_heuristic_object_split(), and rtbuild_merge_bb().

#define DO_MIN (   vec,
  min 
)
Value:
{                                                    \
        if( (min)[0]>(vec)[0] ) (min)[0]= (vec)[0];                           \
        if( (min)[1]>(vec)[1] ) (min)[1]= (vec)[1];                           \
        if( (min)[2]>(vec)[2] ) (min)[2]= (vec)[2];                           \
    }

Definition at line 76 of file BLI_utildefines.h.

Referenced by BuildBinaryVBVH< Node >::_transform(), bvh_node_merge_bb(), bvh_refit(), RE_rayobject_blibvh_add(), RE_rayobject_blibvh_bb(), rtbuild_heuristic_object_split(), and rtbuild_merge_bb().

#define DO_MINMAX (   vec,
  min,
  max 
)
#define DO_MINMAX2 (   vec,
  min,
  max 
)
Value:
{                                           \
        if( (min)[0]>(vec)[0] ) (min)[0]= (vec)[0];                           \
        if( (min)[1]>(vec)[1] ) (min)[1]= (vec)[1];                           \
        if( (max)[0]<(vec)[0] ) (max)[0]= (vec)[0];                           \
        if( (max)[1]<(vec)[1] ) (max)[1]= (vec)[1];                           \
    }

Definition at line 94 of file BLI_utildefines.h.

Referenced by clipUVTransform(), draw_distortion(), ED_uvedit_minmax(), layerDoMinMax_mloopuv(), node_group_make_from_selected(), p_chart_uv_bbox(), p_smooth(), pixel_bounds_array(), pixel_bounds_uv(), project_paint_begin(), project_paint_delayed_face_init(), selected_boundbox(), stabilization_median_point(), uv_map_clip_correct(), and weld_align_uv().

#define ELEM (   a,
  b,
 
)    ( (a)==(b) || (a)==(c) )

Definition at line 44 of file BLI_utildefines.h.

Referenced by acf_generic_group_offset(), act_markers_make_local_exec(), act_markers_make_local_poll(), action_groups_add_new(), action_groups_clear_tempflags(), action_groups_remove_channel(), action_idcode_patch_check(), action_listener(), action_to_animdata(), ActionFCurveToTransData(), active_node_panel(), add_bezt_to_keycolumns_list(), add_fmodifier(), add_gpframe_to_keycolumns_list(), add_nlastrip_to_stack(), add_pose_transdata(), add_render_lamp(), alphasort_version_246(), ANIM_channel_draw(), ANIM_channel_draw_widgets(), ANIM_fcurve_delete_from_animdata(), ANIM_fcurve_keyframes_loop(), ANIM_flush_setting_anim_channels(), ANIM_fmodifiers_copy_to_buf(), ANIM_relative_keyingset_add_source(), animchan_sync_group(), animchannels_enable_poll(), animdata_filter_ds_particles(), animedit_poll_channels_active(), animedit_poll_channels_nla_tweakmode_off(), animsys_evaluate_action_group(), animviz_calc_motionpaths(), animviz_verify_motionpaths(), apply_objects_internal(), applyModifier(), armature_align_bones_exec(), armature_autoside_names_exec(), armature_deform_verts(), armature_fill_bones_exec(), armature_flip_names_exec(), armature_merge_exec(), armature_parent_set_exec(), autokeyframe_pose_cb_func(), bake_shade(), BKE_add_image_extension(), BKE_animdata_fix_paths_rename(), BKE_animdata_separate_by_basepath(), BKE_animdata_set_action(), BKE_animsys_evaluate_animdata(), BKE_image_all_free_anim_ibufs(), BKE_keyingset_add_path(), BKE_keyingset_free_path(), BKE_nla_action_pushdown(), BKE_nla_tweakmode_enter(), BKE_nla_tweakmode_exit(), BKE_nla_validate_state(), BKE_nlameta_add_strip(), BKE_nlameta_flush_transforms(), BKE_nlastrip_find_active(), BKE_nlastrip_validate_autoblends(), BKE_nlastrip_validate_name(), BKE_nlastrips_add_strip(), BKE_nlastrips_clear_metas(), BKE_nlastrips_clear_metastrip(), BKE_nlastrips_make_metas(), BKE_nlastrips_sort_strips(), BKE_nlatrack_add_strip(), BKE_nlatrack_find_active(), BKE_nlatrack_get_bounds(), BKE_nlatrack_has_animated_strips(), BKE_nlatrack_set_active(), BKE_nlatrack_solo_toggle(), BKE_nlatrack_sort_strips(), BKE_nlatracks_have_animated_strips(), BKE_ptcache_ids_from_object(), BKE_texture_dependsOnTime(), BKE_tracking_context_new(), BKE_tracking_next(), BLI_make_file_string(), BLI_uniquename(), boid_body(), boid_rule_applies(), borderselect_action(), bpath_traverse_id(), brush_edit_apply(), build_dag_object(), button_activate_init(), buttons_context_draw(), buttons_shading_context(), buttons_shading_new_context(), calc_manipulator_stats(), calchandleNurb(), calchandles_fcurve(), calculateCenter(), cdf_read_header(), collapseuvs(), compbuf_from_pass(), constraint_delete_exec(), constraint_mat_convertspace(), constraintRotLim(), context_get_markers(), convert_exec(), convertViewVec(), copy_animedit_keys(), copy_attr(), copy_fcurves(), copy_fmodifiers(), copy_nladata(), count_fcurve_keys(), createTransCurveVerts(), createTransData(), createTransNlaData(), createTransPose(), curve_calc_modifiers_post(), decode_tfaceflag(), delete_keyframe(), disconnect_hair(), distribute_grid(), distribute_threads_init_data(), do_2d_mapping(), do_makeDispListCurveTypes(), do_map(), do_ob_key(), do_outliner_drivers_editop(), do_outliner_keyingset_editop(), do_physical_effector(), do_projectpaint_thread(), do_versions(), do_versions_ipos_to_animato(), do_versions_nodetree_image_default_alpha_output(), draw_armature(), draw_ebones(), draw_ghost_poses(), draw_gpencil_2dimage(), draw_gpencil_view2d(), draw_keyframe_shape(), draw_modifier(), draw_new_particle_system(), draw_object(), draw_outliner(), draw_pose_bones(), draw_view_icon(), drawConstraint(), drawgrid(), drawlamp(), driver_change_variable_type(), driver_get_variable_value(), driver_remove_cb(), dtar_get_pchan_ptr(), dtar_get_prop_val(), dupli_render_particle_set(), duplicate_fcurve_keys(), dvar_eval_rotDiff(), dynamics_step(), ED_image_update_frame(), ED_node_set_active(), ED_object_exit_editmode(), ED_operator_editsurfcurve(), ED_pose_clear_paths(), ED_pose_deselectall(), ED_space_image_show_render(), ED_undo_push(), ED_view3d_datamask(), editmode_toggle_poll(), evaluate_time_fmodifiers(), evaluate_value_fmodifiers(), fcm_cycles_time(), fcurve_bake_modifiers(), fcurve_frame_has_keyframe(), fcurve_free_driver(), fcurve_store_samples(), find_active_fmodifier(), free_nladata(), get_constraint_lb(), get_cpa_texture(), get_object_orco(), get_particle_uvco_mcol(), get_pose_channel(), getTransformOrientation(), give_parvert(), gp_actframe_delete_exec(), gp_paint_initstroke(), gp_stroke_smooth(), gpencil_draw_modal(), gpencil_frame_delete_laststroke(), gpencil_layer_delactive(), gpencil_layer_delframe(), gpencil_layer_getactive(), gplayer_make_cfra_list(), GPU_enable_material(), GPU_free_images_anim(), gpu_set_alpha_blend(), graph_listener(), graphedit_activekey_handles_cb(), graphkeys_click_insert_exec(), group_link_exec(), group_move_exec(), group_sort_exec(), id_data_find_fcurve(), image_drop_poll(), image_save_as_invoke(), IMB_convert_profile(), IMB_partial_rect_from_float(), IMB_rect_from_float(), info_header_listener(), init_render_object_data(), init_render_texture(), initshadowbuf(), initSnapping(), initTimeScale(), initTimeTranslate(), initTransform(), initTranslation(), ipo_to_animdata(), is_image_texture_node(), is_multires_bake(), iter_step_fcurve(), join_exec(), key_get_curValue_rnaPath(), key_to_vertcos(), list_find_fcurve(), list_has_suitable_fmodifier(), load_editMesh(), load_editNurb(), local_merge(), localize(), make_editNurb(), make_local_armature(), make_local_brush(), make_local_camera(), make_local_curve(), make_local_lattice(), make_local_mball(), make_local_mesh(), make_local_object(), make_local_particlesettings(), make_local_world(), make_prim(), make_trans_verts(), makebevelcurve(), material_slot_assign_exec(), material_slot_de_select(), modifier_apply_obdata(), modifiers_getVirtualModifierList(), modify_key_op_poll(), mouse_action_keys(), mouse_nla_channels(), new_particle_duplilist(), nla_action_draw_keyframes(), nlaedit_add_transition_exec(), nlaeval_fmodifiers_join_stacks(), nlaeval_fmodifiers_split_stacks(), nlastrip_is_first(), nlastrips_ctime_get_strip(), node_composit_buts_image(), node_drop_poll(), node_link_viewer(), node_menu_column_foreach_cb(), node_sockets_panel(), nodeShaderSynchronizeID(), nodeUpdateID(), ntree_get_active_iuser(), ntreeCompositTagAnimated(), ntreeCompositTagGenerators(), ntreeSetOutput(), ob_get_key(), object_clear_transform_generic_exec(), object_editcurve_get(), object_insert_shape_key(), object_modifier_remove(), object_origin_set_exec(), offset_to_key(), outliner_draw_tree(), outliner_draw_tree_element(), packAll(), paint_draw_alpha_overlay(), paint_stroke_modal(), panel_activate_state(), parent_set_exec(), particle_billboard(), pose_add_group(), pose_armature_layers_exec(), pose_autoside_names_exec(), pose_calculate_paths_exec(), pose_clear_paths_exec(), pose_clear_transform_generic_exec(), pose_constraint_copy_exec(), pose_copy_exec(), pose_flip_names_exec(), pose_group_assign_exec(), pose_group_deselect_exec(), pose_group_select_exec(), pose_group_unassign_exec(), pose_groups_menu_invoke(), pose_ik_add_invoke(), pose_paste_exec(), pose_propagate_fcurve(), pose_remove_group(), pose_select_grouped_exec(), poselib_add_exec(), poselib_add_menu_invoke(), poselib_get_free_index(), poselib_init_new(), poselib_preview_exit(), poselib_preview_handle_event(), poselib_unlink_exec(), poselib_validate(), preview_mat_has_sss(), previewrange_clear_exec(), projectFloatView(), projectIntView(), psys_free(), psys_get_particle_state(), psys_get_texture(), psys_prepare_physics(), psys_reset(), psys_update_path_cache(), ray_ao(), ray_shadow(), RE_init_sample_material(), recalcData_view3d(), region_azone_add(), region_rect_recursive(), region_scissor_winrct(), remove_tagged_particles(), render_new_particle_system(), RNA_def_property(), rna_id_write_error(), RNA_property_array_item_char(), RNA_property_array_item_index(), RNA_property_update_cache_add(), sample_occ_tree(), save_image_doit(), save_image_options_init(), scopes_update(), scroll_printstr(), scroller_activate_init(), scroller_activate_invoke(), scroller_activate_modal(), sculpt_combine_proxies(), sculpt_flush_stroke_deform(), sculpt_update_brush_delta(), seq_free_sequence(), seq_get_early_out_for_blend_mode(), seq_update_muting_recursive(), seq_update_sound_bounds_all(), seq_update_sound_bounds_recursive(), sequencer_select_invoke(), set_active_fmodifier(), set_boid_values(), setExecutableNodes(), sethandlesNurb(), shade_ray(), shade_smooth_exec(), shader_preview_render(), slide_marker_modal(), smooth_fcurve(), snapObjects(), sound_drop_poll(), special_aftertrans_update(), special_transvert_update(), stats_object_edit(), system_step(), test_rotmode_euler(), testhandles_fcurve(), testhandlesNurb(), text_drop_poll(), text_scroll_modal(), time_view_all_exec(), transform_autoik_update(), ui_apply_autokey_undo(), ui_apply_but_func(), ui_apply_but_LINK(), ui_apply_but_ROW(), ui_but_anim_expression_create(), ui_but_update_from_old_block(), ui_def_but_rna(), ui_do_but_BLOCK(), ui_do_but_BUT(), ui_do_but_NUM(), ui_do_but_SLI(), ui_do_but_TEX(), ui_do_button(), ui_get_but_string_max_length(), ui_handle_button_event(), ui_handle_list_event(), ui_handle_menu_event(), ui_handler_panel_region(), ui_item_array(), ui_item_menu(), ui_item_rna_size(), ui_popup_block_create(), ui_textedit_set_cursor_pos(), ui_tooltip_create(), UI_view2d_grid_calc(), UI_view2d_listview_cell_to_view(), uiDefAutoButR(), uiEndPanel(), uiItemPointerR(), uiTemplateImage(), uiTemplateImageSettings(), unlink_object(), using_lightcache(), verify_driver_fcurve(), verify_fcurve(), vertcos_to_key(), vertex_parent_set_exec(), view3d_boxview_clip(), view3d_boxview_sync(), view3d_ima_drop_poll(), view3d_select_invoke(), visualkey_can_use(), vol_precache_objectinstance_threads(), vol_shade_one_lamp(), where_is_pose(), widget_draw_text_icon(), wm_draw_region_clear(), wm_event_do_handlers(), wm_event_do_notifiers(), WM_gesture_new(), wm_handler_ui_call(), wm_keymap_item_find_props(), wm_paintcursor_draw(), wm_read_exotic(), and WM_window_open_temp().

#define ELEM10 (   a,
  b,
  c,
  d,
  e,
  f,
  g,
  h,
  i,
  j,
 
)    ( ELEM4(a, b, c, d, e) || ELEM6(a, f, g, h, i, j, k) )

Definition at line 52 of file BLI_utildefines.h.

Referenced by do_item_rename().

#define ELEM11 (   a,
  b,
  c,
  d,
  e,
  f,
  g,
  h,
  i,
  j,
  k,
 
)    ( ELEM4(a, b, c, d, e) || ELEM7(a, f, g, h, i, j, k, l) )

Definition at line 53 of file BLI_utildefines.h.

#define ELEM3 (   a,
  b,
  c,
 
)    ( ELEM(a, b, c) || (a)==(d) )

Definition at line 45 of file BLI_utildefines.h.

Referenced by action_groups_add_channel(), action_groups_find_named(), action_move_fcurves_by_basepath(), KX_BlenderMaterial::ActivateMeshSlot(), add_render_lamp(), ANIM_channel_draw_widgets(), animchan_sync_fcurve(), animedit_poll_channels_active(), animedit_poll_channels_nla_tweakmode_off(), animrecord_check_state(), applyModifier(), bake_shade(), BKE_keyingset_find_path(), BKE_nla_bake(), BKE_nla_tweakmode_enter(), BKE_reports_last_displayable(), BL_ConvertMesh(), BLI_replace_extension(), boundbox_displist(), bpath_traverse_id(), build_dag_object(), button_activate_state(), buttons_context_path_data(), buttons_shading_context(), calc_curve_deform(), ConvertMaterial(), copy_texture_space(), createTransTexspace(), curve_get_tesselate_point(), dag_id_flush_update(), dag_object_time_update_flags(), direct_link_nodetree(), displist_has_faces(), distribute_threads_init_data(), do_init_render_material(), do_item_rename(), do_makeDispListCurveTypes(), do_outliner_operation_event(), do_version_ntree_242_2(), draw_actuator_motion(), draw_bounding_volume(), draw_channel_strips(), draw_modifier(), draw_new_particle_system(), draw_object(), draw_outliner(), draw_selected_name(), drawObjectSelect(), drawtexspace(), drawWireExtra(), ED_node_set_active(), ED_object_enter_editmode(), Euler_rotate_axis(), get_active_posechannel(), get_dm(), getname_anim_fcurve(), give_matarar(), give_totcolp(), gp_layer_to_curve(), gpencil_layer_setactive(), GPU_begin_object_materials(), graphkeys_euler_filter_exec(), icu_to_fcurves(), image_aspect(), image_drop_poll(), initTransInfo(), ipo_to_animato(), knife_cut_exec(), lib_link_screen(), lib_link_screen_restore(), M_Geometry_intersect_line_sphere(), make_prim(), makeDispListCurveTypes(), makeshadowbuf(), meshdeform_bind_exec(), modifier_sameTopology(), modify_key_op_poll(), movie_drop_poll(), node_add_menu(), node_add_node(), node_composit_exec_bilateralblur(), node_get_colorid(), node_only_value(), ntreeAddTree(), ntreeShaderGetTexcoMode(), object_get_boundbox(), object_track_clear_exec(), outliner_add_element(), outliner_item_activate(), panel_aligned(), particles_are_dynamic(), picker_new_hide_reveal(), pose_select_same_group(), pose_select_same_keyingset(), pose_select_same_layer(), poselib_preview_init_data(), psys_changed_type(), pyrna_param_to_py(), pyrna_prop_to_py(), pyrna_py_to_prop(), radial_control_invoke(), RE_Database_Baking(), RE_init_sample_material(), reload_sequence_new_file(), rna_idproperty_verify_valid(), rna_raw_access(), save_image_options_init(), sculpt_combine_proxies(), select_grouped_effect(), seq_must_swap_input_in_blend_mode(), snap_bezier_horizontal(), test_constraints(), text_scroll_to_cursor(), transformEvent(), ui_apply_but_BLOCK(), ui_apply_but_TOG(), UI_but_active_drop_name(), ui_but_can_align(), ui_but_copy_paste(), ui_but_drop(), ui_but_find_mouse_over(), ui_def_but(), ui_do_but_BLOCK(), ui_do_but_EXIT(), ui_do_but_HOTKEYEVT(), ui_do_but_KEYEVT(), ui_do_but_NUM(), ui_do_but_SLI(), ui_do_but_textedit(), ui_do_but_TOG(), ui_do_button(), ui_get_but_string(), ui_handle_button_return_submenu(), ui_handle_menu_event(), ui_is_but_sel(), ui_item_rna_size(), ui_numedit_apply_snapf(), ui_numedit_begin(), ui_set_but_string(), ui_textedit_begin(), ui_tooltip_create(), UI_view2d_totRect_set_resize(), uiDefAutoButsRNA(), viewRedrawPost(), visualkey_can_use(), vol_shade_one_lamp(), WM_keymap_item_compare(), WM_modal_tweak_exit(), and wm_tweakevent_test().

#define ELEM4 (   a,
  b,
  c,
  d,
 
)    ( ELEM(a, b, c) || ELEM(a, d, e) )
#define ELEM5 (   a,
  b,
  c,
  d,
  e,
 
)    ( ELEM(a, b, c) || ELEM3(a, d, e, f) )
#define ELEM6 (   a,
  b,
  c,
  d,
  e,
  f,
  g 
)    ( ELEM(a, b, c) || ELEM4(a, d, e, f, g) )
#define ELEM7 (   a,
  b,
  c,
  d,
  e,
  f,
  g,
 
)    ( ELEM3(a, b, c, d) || ELEM4(a, e, f, g, h) )
#define ELEM8 (   a,
  b,
  c,
  d,
  e,
  f,
  g,
  h,
  i 
)    ( ELEM4(a, b, c, d, e) || ELEM4(a, f, g, h, i) )
#define ELEM9 (   a,
  b,
  c,
  d,
  e,
  f,
  g,
  h,
  i,
 
)    ( ELEM4(a, b, c, d, e) || ELEM5(a, f, g, h, i, j) )

Definition at line 51 of file BLI_utildefines.h.

#define F3TOCHAR3 (   v2,
  v1 
)
Value:
{                                                   \
        (v1)[0]= FTOCHAR((v2[0]));                                            \
        (v1)[1]= FTOCHAR((v2[1]));                                            \
        (v1)[2]= FTOCHAR((v2[2]));                                            \
    }

Definition at line 112 of file BLI_utildefines.h.

Referenced by brush_imbuf_new(), and IMB_buffer_byte_from_float().

#define F3TOCHAR4 (   v2,
  v1 
)
Value:
{                                                   \
        (v1)[0]= FTOCHAR((v2[0]));                                            \
        (v1)[1]= FTOCHAR((v2[1]));                                            \
        (v1)[2]= FTOCHAR((v2[2]));                                            \
        (v1)[3]= 255;                                                         \
    }

Definition at line 117 of file BLI_utildefines.h.

#define F4TOCHAR4 (   v2,
  v1 
)
Value:
{                                                   \
        (v1)[0]= FTOCHAR((v2[0]));                                            \
        (v1)[1]= FTOCHAR((v2[1]));                                            \
        (v1)[2]= FTOCHAR((v2[2]));                                            \
        (v1)[3]= FTOCHAR((v2[3]));                                            \
    }

Definition at line 123 of file BLI_utildefines.h.

Referenced by float_to_byte_v4(), and widget_swatch().

#define FALSE   0

Definition at line 36 of file BLI_utildefines.h.

Referenced by action_keymap_keyframes(), actkeys_previewrange_exec(), actkeys_viewall_exec(), add_huff_table(), add_verts_to_dgroups(), addzbuffloatImBuf(), addzbufImBuf(), an_stringdec(), ANIM_editkeyframes_refresh(), animchan_sync_fcurve(), apply_mp_locks_normalize(), applyarmature_fix_boneparents(), applyModifier(), armature_circle_select(), ARMATURE_OT_select_linked(), avi_fetchibuf(), axis_set_view(), backdrawview3d(), BKE_add_image_extension(), BKE_alphatest_ibuf(), BKE_mesh_validate_arrays(), BKE_mesh_validate_dm(), BKE_ptcache_bake(), blend_save_check(), BLI_edgehash_new(), BLI_get_folder_version(), BLI_ghash_new(), BLI_vfontchar_from_freetypefont(), BME_CD_Create(), BME_make_mesh(), boundbox_seq(), bpath_relocate_visitor(), bpy_blend_paths(), bpy_blend_paths_visit_cb(), BPy_BoolVectorProperty(), bpy_class_call(), BPy_EnumProperty(), BPY_filepath_exec(), BPy_FloatVectorProperty(), BPy_IntVectorProperty(), bpy_prop_update_cb(), bpy_resource_path(), brush_edit_apply_event(), build_gammatabs(), button_activate_init(), calc_action_range(), calc_fcurve_bounds(), calc_fcurve_range(), calc_weightpaint_vert_color(), camera_view_frame(), camera_view_frame_fit_to_scene(), change_plugin_seq(), checkMissingFiles_visit_cb(), clean_paths_visit_cb(), clip_keymap(), Compress_JPEG(), console_keymap(), console_move_exec(), copy_data_path_button_exec(), copy_libblock(), createRepresentation(), createTransSeqData(), CURVE_OT_select_random(), CustomData_bmesh_init_pool(), cut_seq_hard(), cut_seq_list(), cut_seq_soft(), defgroup_flip_map(), defgroup_flip_map_single(), deselect_all_seq(), do_lasso_select_armature(), do_lasso_select_paintface(), do_lasso_select_paintvert(), do_paintface_box_select(), do_paintvert_box_select(), do_weight_paint_vertex(), doMirrorOnAxis(), draw_armature(), draw_bgpic(), draw_depth(), draw_em_measure_stats(), draw_ghost_poses(), draw_ghost_poses_keys(), draw_ghost_poses_range(), draw_object(), draw_textured_begin(), draw_timeline_seq(), drawlamp(), drawObjectSelect(), drawspiral(), drawviewborder(), ED_armature_bone_get_mirrored(), ED_autokeyframe_object(), ED_autokeyframe_pchan(), ED_fileselect_init_layout(), ED_fileselect_set_params(), ED_keymap_animchannels(), ED_keymap_armature(), ED_keymap_curve(), ED_keymap_mesh(), ED_keymap_metaball(), ED_keymap_object(), ED_keymap_paint(), ED_keymap_screen(), ED_keymap_uvedit(), ED_marker_keymap(), ED_mesh_mirrtopo_init(), ED_mesh_mirrtopo_recalc_check(), ED_object_add_generic_get_opts(), ED_object_get_active_image(), ED_operator_region_view3d_active(), ED_operatormacros_armature(), ED_operatormacros_curve(), ED_operatormacros_mesh(), ed_screen_context(), ED_vgroup_copy_array(), ED_vgroup_data_create(), ED_vgroup_give_array(), ED_vgroup_mirror(), ED_view3d_calc_camera_border(), ED_view3d_camera_lock_sync(), ED_view3d_draw_offscreen(), ED_view3d_lock(), edgeloop_select(), edgering_select(), editmesh_mark_seam(), effector_add_type(), EM_select_mirrored(), endlocalview(), evaluate_seq_frame(), file_draw_check_exists(), find_nearest_seq(), find_neighboring_sequence(), find_next_prev_edit(), find_next_prev_sequence(), findMissingFiles_visit_cb(), flushTransSeq(), fly_invoke(), fly_modal(), flyApply_ndof(), flyEvent(), foreach_attr_type(), foreach_getset(), foreach_parse_args(), free_buffers(), free_imbuf_seq(), freeSeqData(), game_copy_pose(), game_engine_exec(), gen_lock_flags(), get_colamd(), get_selected_defgroups(), give_active_mtex(), give_base_to_objects(), give_ibuf_seq(), give_ibuf_seq_threaded(), gp_stroke_newfrombuffer(), graph_main_area_draw(), graphedit_keymap_keyframes(), graphkeys_mselect_column(), graphkeys_previewrange_exec(), graphkeys_select_leftright(), graphkeys_viewall_exec(), group_instance_add_exec(), handle_app1(), handle_layer_buttons(), GHOST_SystemCocoa::handleTabletEvent(), has_locked_group(), has_locked_group_selected(), heat_bone_weighting(), ibJpegImageFromCinfo(), icon_draw_at_size(), id_data_find_fcurve(), id_local_cb(), ignore_parent_tx(), image_save_as_check(), image_save_exec(), imb_addencodedbufferImBuf(), imb_addrectfloatImBuf(), imb_addrectImBuf(), imb_addtilesImBuf(), IMB_allocImBuf(), IMB_anim_get_fps(), IMB_anim_open_proxy(), imb_cocoaSaveImage(), IMB_dupImBuf(), imb_enlargeencodedbufferImBuf(), IMB_isanim(), IMB_ispic(), IMB_ispic_name(), IMB_moviecache_create(), IMB_saveiff(), index_rebuild_fallback(), indexer_dv_proc_frame(), initFlyInfo(), initgrabz(), GHOST_WindowWin32::initMultisample(), input_have_to_preprocess(), insert_curvekey(), insert_gap(), insert_lattkey(), insert_meshkey(), GHOST_WindowWin32::installDrawingContext(), GHOST_WindowWin32::invalidate(), isect_plane_plane_v3(), key_pointer_size(), keymap_event_set(), keymap_particle(), library_append_end(), load_file(), load_frame_blendervoxel(), load_frame_raw8(), GHOST_WindowWin32::loadCursor(), logic_buttons(), logicbricks_move_property_get(), M_Geometry_intersect_line_sphere(), M_Geometry_intersect_line_sphere_2d(), make_editMesh(), make_links_data_exec(), make_local_action(), make_local_armature(), make_local_brush(), make_local_camera(), make_local_curve(), make_local_image(), make_local_lamp(), make_local_lattice(), make_local_material(), make_local_mball(), make_local_mesh(), make_local_object(), make_local_particlesettings(), make_local_speaker(), make_local_texture(), make_local_world(), make_object_duplilist_real(), make_prim(), make_prim_ext(), makeBevelList(), makebody_tga(), makeFilesAbsolute_visit_cb(), makeFilesRelative_visit_cb(), mesh_calc_modifiers(), mesh_mirrtopo_table(), MESH_OT_select_random(), mesh_to_curve(), minmax_object(), mouse_mesh_shortest_path(), mouse_weight_paint_vertex_select(), move_camera(), moveCloserToDistanceFromPlane(), navmesh_obmode_data_poll(), navmesh_obmode_poll(), nla_keymap_channels(), nla_keymap_main(), nlaedit_viewall_exec(), no_gaps(), node_composit_get_float_buffer(), node_composit_get_image(), node_composit_get_movieclip(), node_keymap(), nodeSetActiveID(), nodeUpdateID(), normal_projection_project_vertex(), NPP_Print(), objchr_to_ftvfontdata(), object_add_material_slot(), object_apply_mat4(), object_camera_add_exec(), object_lamp_add_exec(), object_make_proxy(), object_mouse_select_menu(), object_origin_set_exec(), OBJECT_OT_group_instance_add(), OBJECT_OT_lamp_add(), OBJECT_OT_ocean_bake(), OBJECT_OT_select_by_layer(), OBJECT_OT_select_by_type(), OBJECT_OT_select_grouped(), OBJECT_OT_select_linked(), OBJECT_OT_select_random(), OBJECT_OT_vertex_group_clean(), OBJECT_OT_vertex_group_mirror(), object_remove_material_slot(), object_speaker_add_exec(), operator_search_menu(), outliner_build_tree(), outliner_keymap(), parent_clear_exec(), pose_circle_select(), POSE_OT_paste(), POSE_OT_select_grouped(), POSE_OT_select_linked(), pose_propagate_get_refVal(), pose_proxy_synchronize(), posttrans_action_clean(), project_bucket_clip_face(), project_paint_begin(), pyop_call(), pyrna_enum_as_string(), pyrna_enum_to_py(), pyrna_func_call(), pyrna_math_object_from_array(), pyrna_prop_collection_contains(), pyrna_prop_collection_get(), pyrna_prop_collection_iter_next(), pyrna_prop_collection_subscript_str_lib_pair_ptr(), pyrna_prop_to_enum_bitfield(), pyrna_py_to_prop(), pyrna_struct_CreatePyObject(), python_script_error_jump_text(), q_scale_linear_interpolation(), RE_BlenderFrame(), RE_WriteEnvmapResult(), RE_WriteRenderResult(), read_undosave(), recalcData_view3d(), redistribute_change(), render_border_exec(), render_result_exr_file_read(), report_textview_begin(), report_textview_step(), rewrite_path_alloc(), rewrite_path_fixed(), rewrite_path_fixed_dirfile(), RNA_action_itemf(), RNA_group_itemf(), rna_id_itemf(), rna_id_write_error(), rna_idp_path_create(), RNA_image_itemf(), rna_path_from_ID_to_idpgroup(), RNA_property_as_string(), RNA_scene_itemf(), RNA_struct_contains_property(), rollBoneByQuat(), rollBoneByQuatAligned(), rollBoneByQuatJoint(), save_image_doit(), save_image_options_init(), scene_update_tagged(), screen_opengl_render_apply(), screen_opengl_render_init(), screenshot_data_create(), select_grouped_data(), select_grouped_effect(), select_grouped_effect_link(), select_grouped_time_overlap(), select_grouped_type(), select_grouped_type_basic(), select_grouped_type_effect(), select_more_less_seq__internal(), select_single_seq(), seq_active_get(), seq_active_pair_get(), seq_active_set(), seq_effect_find_selected(), seq_foreground_frame_get(), seq_must_swap_input_in_blend_mode(), seq_proxy_get_fname(), seq_remap_paths(), seq_render_scene_strip_impl(), seq_render_strip(), seqbase_isolated_sel_check(), sequence_effect_speed_rebuild_map(), sequencer_add_duplicate_exec(), sequencer_add_effect_strip_exec(), sequencer_add_generic_strip_exec(), sequencer_add_image_strip_exec(), sequencer_add_scene_strip_exec(), sequencer_borderselect_exec(), sequencer_change_effect_input_exec(), sequencer_change_effect_type_exec(), sequencer_change_path_exec(), sequencer_change_path_invoke(), sequencer_copy_exec(), sequencer_cut_exec(), sequencer_de_select_all_exec(), sequencer_delete_exec(), sequencer_edit_poll(), sequencer_effect_poll(), sequencer_keymap(), sequencer_lock_exec(), sequencer_meta_make_exec(), sequencer_meta_separate_exec(), sequencer_meta_toggle_exec(), sequencer_mute_exec(), sequencer_offset_clear_exec(), SEQUENCER_OT_select_grouped(), SEQUENCER_OT_sound_strip_add(), SEQUENCER_OT_view_ghost_border(), sequencer_rebuild_proxy_exec(), sequencer_refresh_all_exec(), sequencer_reload_exec(), sequencer_select_inverse_exec(), sequencer_select_invoke(), sequencer_separate_images_exec(), sequencer_snap_exec(), sequencer_strip_has_path_poll(), sequencer_strip_poll(), sequencer_swap_exec(), sequencer_unlock_exec(), sequencer_unmute_exec(), sequencer_view_poll(), sequencer_view_selected_exec(), setBoneRollFromNormal(), shader_preview_free(), shrinkwrap_get_tarmat(), shrinkwrapModifier_deform(), skip_fcurve_selected_data(), smooth_view(), sort_seq(), SOUND_OT_open(), SOUND_OT_open_mono(), space_image_file_exists_poll(), special_aftertrans_update(), spruneL(), testhandles_fcurve(), text_keymap(), tool_search_menu(), touch_seq_files(), tree_element_active_ebone(), tree_element_active_sequence_dup(), tryToAddVerts(), ui_but_is_rna_undo(), ui_button_activate_do(), ui_def_but_rna(), ui_do_but_CURVE(), ui_handle_menu_event(), UI_icon_draw_aspect_color(), UI_icon_draw_preview_aspect_size(), UI_icon_draw_size(), ui_is_a_warp_but(), ui_is_but_rna_valid(), ui_menu_block_set_keymaps(), ui_mouse_inside_region(), ui_set_but_string(), ui_textedit_step_next_utf8(), ui_textedit_step_prev_utf8(), uiButSetFocusOnEnter(), uiDefAutoButsRNA(), uiItemFullR(), uiItemM(), update_changed_seq_and_deps(), Vector_ass_item(), Vector_item(), vertex_group_remove_from_exec(), vgroup_blend(), vgroup_clean(), vgroup_duplicate(), view3d_camera_to_view_selected_poll(), view3d_draw_transp(), view3d_draw_xray(), view3d_draw_xraytransp(), view3d_get_view_aligned_coordinate(), view3d_keymap(), view3d_layers_exec(), view3d_main_area_draw_objects(), view3d_opengl_select(), view3d_select_invoke(), view3d_update_depths_rect(), view_ghost_border_exec(), viewdolly_invoke(), viewrotate_modal(), viewzoom_invoke(), visualkey_can_use(), vnormal(), weight_paint_sample_enum_itemf(), weight_sample_invoke(), wm_block_dialog_create(), wm_block_search_menu(), wm_enum_search_menu(), wm_event_add_ghostevent(), wm_handler_operator_call(), WM_init(), wm_macro_modal(), WM_operator_call_py(), wm_operator_init_from_last(), wm_operator_invoke(), WM_operator_name_call(), WM_read_file(), WM_read_homefile(), wm_resource_check_prev(), wm_window_keymap(), wpaint_blend(), wpaint_mirror_vgroup_ensure(), wpaint_stroke_test_start(), and writePackedFile().

#define FTOCHAR (   val)    ((val)<=0.0f)? 0 : (((val)>(1.0f-0.5f/255.0f))? 255 : (char)((255.0f*(val))+0.5f))
#define FTOUSHORT (   val)    ((val >= 1.0f-0.5f/65535)? 65535: (val <= 0.0f)? 0: (unsigned short)(val*65535.0f + 0.5f))
#define GET_INT_FROM_POINTER (   i)    ((int)(intptr_t)(i))

Definition at line 225 of file BLI_utildefines.h.

Referenced by achannel_setting_flush_widget_cb(), applyModifier(), BIF_currentTemplate(), BIF_listTemplates(), BKE_mesh_validate_arrays(), blo_nextbhead(), blo_prevbhead(), bpy_app_generic_callback(), build_mesh_leaf_node(), ccgdm_adjacent_grid(), ccgDM_copyFinalEdgeArray(), ccgDM_drawFacesSolid(), ccgDM_drawFacesTex_common(), ccgDM_drawMappedFaces(), ccgDM_drawMappedFacesGLSL(), ccgDM_drawMappedFacesMat(), ccgdm_getVertCos(), check_seam(), codegen_set_unique_ids(), Color_channel_get(), Color_channel_hsv_get(), Color_channel_hsv_set(), Color_channel_set(), ConvertCSGDescriptorsToDerivedMesh(), cutEdges(), edgecut_get(), edgetag_shortest_path(), editmesh_calc_modifiers(), Euler_axis_get(), Euler_axis_set(), explodeMesh(), fmod_envelope_deletepoint_cb(), getCCGDerivedMesh(), GPU_build_mesh_buffers(), handle_layer_buttons(), loop_sync(), map_insert_vert(), mesh_calc_modifiers(), modifiers_calcDataMasks(), node_add_menu(), object_insert_ptcache(), operator_enum_call_cb(), pc_cmp(), project_bucket_init(), project_bucket_point_occluded(), project_paint_PickFace(), psys_calc_dmcache(), psys_particle_dm_face_lookup(), Quaternion_axis_get(), Quaternion_axis_set(), readshadowbuf(), readshadowbuf_halo(), select_vertex_path_exec(), set_subsurf_uv(), sk_drawSketch(), sph_force_cb(), ss_sync_from_uv(), subsurf_calculate_limit_positions(), template_id_cb(), ui_layer_but_cb(), ui_node_link(), update_search_cb(), Vector_axis_get(), Vector_axis_set(), Vector_swizzle_get(), and Vector_swizzle_set().

#define IN_RANGE (   a,
  b,
 
)    ((b < c)? ((b<a && a<c)? 1:0) : ((c<a && a<b)? 1:0))
#define IN_RANGE_INCL (   a,
  b,
 
)    ((b < c)? ((b<=a && a<=c)? 1:0) : ((c<=a && a<=b)? 1:0))

Definition at line 187 of file BLI_utildefines.h.

Referenced by draw_keylist(), and nlastrips_ctime_get_strip().

#define INIT_MINMAX (   min,
  max 
)
#define INIT_MINMAX2 (   min,
  max 
)
#define INPR (   v1,
  v2 
)    ( (v1)[0]*(v2)[0] + (v1)[1]*(v2)[1] + (v1)[2]*(v2)[2] )
#define IS_EQ (   a,
 
)    ((fabs((double)(a)-(b)) >= (double) FLT_EPSILON) ? 0 : 1)
#define IS_EQF (   a,
 
)    ((fabsf((float)(a)-(b)) >= (float) FLT_EPSILON) ? 0 : 1)
#define IS_EQT (   a,
  b,
 
)    ((a > b)? (((a-b) <= c)? 1:0) : ((((b-a) <= c)? 1:0)))
#define LIKELY (   x)    (x)

Definition at line 309 of file BLI_utildefines.h.

Referenced by BLI_mempool_iterstep().

#define MAX2 (   x,
 
)    ( (x)>(y) ? (x) : (y) )

Definition at line 64 of file BLI_utildefines.h.

#define MAX3 (   x,
  y,
 
)    MAX2( MAX2((x),(y)) , (z) )

Definition at line 65 of file BLI_utildefines.h.

#define MAX4 (   x,
  y,
  z,
 
)    MAX2( MAX2((x),(y)) , MAX2((z),(a)) )
#define MIN2 (   x,
 
)    ( (x)<(y) ? (x) : (y) )

Definition at line 60 of file BLI_utildefines.h.

Referenced by accum_density(), addtosamp_shr(), animviz_calc_motionpaths(), area_move_set_limits(), BB_expand(), BB_expand_with_bb(), BKE_ptcache_bake(), BKE_ptcache_id_clear(), BKE_ptcache_invalidate(), BKE_ptcache_load_external(), BKE_tracking_clamp_track(), BKE_tracking_context_new(), BKE_tracking_reconstruction_context_new(), BLI_bvhtree_overlap(), BLI_split_dirfile(), boid_body(), boid_brain(), border_apply_rect(), bpath_traverse_id(), BPy_FloatProperty(), BPy_FloatVectorProperty(), BPy_IDArray_ass_slice(), BPy_IDArray_slice(), BPy_IntProperty(), BPy_IntVectorProperty(), brush_add(), brush_painter_do_partial(), calc_action_range(), calc_fcurve_bounds(), calc_fcurve_range(), calc_text_rcts(), calculate_collision_balls(), ccd_mesh_make(), ccd_mesh_update(), check_zone(), cloth_build_springs(), cloth_bvh_objcollision(), cloth_collision_response_static(), Color_ass_slice(), Color_slice(), compatible_bump_compute(), compress_deepsamples(), console_copy_exec(), console_draw_sel(), convert_tree(), cp_cu_key(), curvemap_buttons_layout(), curvemap_make_table(), curvemapping_add(), curvemapping_changed(), d2dda(), damptrack_evaluate(), defocus_blur(), distribute_grid(), distribute_threads_init_data(), do_curve_key(), do_kink(), do_material_tex(), do_physical_effector(), do_projectpaint_thread(), do_versions(), doEdgeSlide(), DP_energy(), draw_bgpic(), draw_dupli_objects_color(), draw_marker_slide_zones(), draw_object(), draw_seq_strips(), draw_textscroll(), drawHelpline(), drawmeta_contents(), dynamicPaint_doEffectStep(), ED_clip_view_selection(), ED_region_do_draw(), ED_region_tag_redraw_partial(), Euler_ass_slice(), Euler_slice(), execute_posetree(), fd_read_from_memory(), flyApply(), flyEvent(), get_keyframe_extents(), get_mesh_orco_verts(), get_nlastrip_extents(), get_render_shadow_samples(), get_render_subsurf_level(), glaDrawPixelsSafe(), halo_tile(), image_view_all_exec(), imagewraposa(), imagewraposa_aniso(), imapaint_dirty_region(), init_particle_interpolation(), initialize_chain(), initialize_posetree(), key_to_curve(), key_to_latt(), key_to_mesh(), makeBokeh(), mathutils_matrix_col_get(), mathutils_matrix_col_set(), Matrix_ass_slice(), Matrix_slice(), MatrixAccess_slice(), morpho_erode(), mouse_on_corner(), mouse_on_offset(), multiresModifier_set_levels_from_disps(), mywrite(), node_composit_exec_crop(), node_composit_exec_lensdist(), node_composit_exec_scale(), node_draw_group(), node_update_basis(), non_recursive_bvh_div_nodes(), object_handle_update(), paint_convert_bb_to_rect(), partial_redraw_array_merge(), psys_alloc_path_cache_buffers(), psys_get_particle_state(), psys_get_pointcache_start_end(), psys_render_simplify_distribution(), psys_threads_init_path(), ptcache_interpolate(), ptcache_particle_interpolate(), ptcache_read(), Quaternion_ass_slice(), Quaternion_slice(), ray_trace(), RE_init_threadcount(), realloc_particles(), render_frame(), renormalizeWeight(), reset_particle(), resizeArcBuckets(), RNA_property_float_get_array_range(), RNA_property_float_ui_range(), RNA_property_int_get_array_range(), RNA_property_int_ui_range(), round_box__edges(), rtbuild_heuristic_object_split(), RVAddBitmaps_byte(), RVAddBitmaps_float(), RVIsolateHighlights_byte(), RVIsolateHighlights_float(), sb_detect_edge_collisionCached(), scan_for_ext_face_forces(), scatter_settings_new(), screen_find_active_scredge(), screen_test_scale(), seg_intersect(), seq_tx_get_final_right(), sequencer_view_all_preview_exec(), sequencer_view_selected_exec(), shade_sample_sss(), shadow_halo(), shuffle_seq_time_offset_test(), SimpleDeformModifier_do(), sk_applyMergeGesture(), sk_detectMergeGesture(), softbody_apply_forces(), softbody_step(), splineik_evaluate_bone(), stabilization_auto_scale_factor(), startConstraint(), tekenhandlesN(), text_draw(), threaded_makeshadowbufs(), track_init_markers(), track_markers_exec(), track_markers_initjob(), transformEvent(), txt_add_marker(), ui_block_func_POPUP(), ui_do_animate(), ui_get_but_string(), ui_get_but_vectorf(), ui_litem_estimate_absolute(), ui_litem_estimate_column_flow(), ui_litem_layout_absolute(), ui_litem_layout_column_flow(), ui_litem_min_width(), ui_numedit_but_HISTOGRAM(), ui_panels_size(), ui_set_but_vectorf(), uiTemplateList(), uiTemplateReportsBanner(), Vector_angle(), Vector_ass_slice(), Vector_slice(), Vector_to_3d(), Vector_to_4d(), view3d_center_camera_exec(), view3d_opengl_select(), view_all_exec(), widget_draw_preview(), widget_num_tria(), widget_scroll_circle(), widgetbase_draw(), zbuf_add_to_span(), and zbuffer_solid().

#define MIN3 (   x,
  y,
 
)    MIN2( MIN2((x),(y)) , (z) )
#define MIN4 (   x,
  y,
  z,
 
)    MIN2( MIN2((x),(y)) , MIN2((z),(a)) )
#define QUATADDFAC (   v1,
  v2,
  v3,
  fac 
)
Value:
{                                            \
        *(v1)=   *(v2)   + *(v3)*(fac);                                       \
        *(v1+1)= *(v2+1) + *(v3+1)*(fac);                                     \
        *(v1+2)= *(v2+2) + *(v3+2)*(fac);                                     \
        *(v1+3)= *(v2+3) + *(v3+3)*(fac);                                     \
    }

Definition at line 168 of file BLI_utildefines.h.

#define QUATCOPY (   v1,
  v2 
)
Value:
{                                                    \
        *(v1)=   *(v2);                                                       \
        *(v1+1)= *(v2+1);                                                     \
        *(v1+2)= *(v2+2);                                                     \
        *(v1+3)= *(v2+3);                                                     \
    }

Definition at line 138 of file BLI_utildefines.h.

Referenced by view3d_set_clipping().

#define SET_INT_IN_POINTER (   i)    ((void*)(intptr_t)(i))
#define SHIFT3 (   type,
  a,
  b,
 
)    { type tmp; tmp = a; a = c; c = b; b = tmp; }

Definition at line 56 of file BLI_utildefines.h.

Referenced by p_chart_lscm_solve(), and PE_mirror_x().

#define SHIFT4 (   type,
  a,
  b,
  c,
 
)    { type tmp; tmp = a; a = d; d = c; c = b; b = tmp; }

Definition at line 57 of file BLI_utildefines.h.

Referenced by PE_mirror_x().

#define STRINGIFY (   x)    STRINGIFY_ARG(x)
#define STRINGIFY_ARG (   x)    #x

Definition at line 230 of file BLI_utildefines.h.

Referenced by setupArguments().

#define SWAP (   type,
  a,
 
)    { type sw_ap; sw_ap=(a); (a)=(b); (b)=sw_ap; }

Definition at line 104 of file BLI_utildefines.h.

#define SWITCH_INT (   a)
#define SWITCH_INT64 (   a)
Value:
{                                                     \
        char s_i, *p_i;                                                       \
        p_i= (char *)&(a);                                                    \
        s_i= p_i[0]; p_i[0]= p_i[7]; p_i[7]= s_i;                             \
        s_i= p_i[1]; p_i[1]= p_i[6]; p_i[6]= s_i;                             \
        s_i= p_i[2]; p_i[2]= p_i[5]; p_i[5]= s_i;                             \
        s_i= p_i[3]; p_i[3]= p_i[4]; p_i[4]= s_i;                             \
    }

Definition at line 199 of file BLI_utildefines.h.

Referenced by cdf_read_header(), and IMB_indexer_open().

#define SWITCH_SHORT (   a)
Value:
{                                                     \
        char s_i, *p_i;                                                       \
        p_i= (char *)&(a);                                                    \
        s_i=p_i[0]; p_i[0]=p_i[1]; p_i[1]=s_i;                                \
    }

Definition at line 215 of file BLI_utildefines.h.

#define TRUE   1

Definition at line 40 of file BLI_utildefines.h.

Referenced by action_keymap_keyframes(), ACTION_OT_select_border(), actionzone_apply(), GHOST_WindowWin32::activateDrawingContext(), actkeys_viewsel_exec(), add_vertex_invoke(), addzbuffloatImBuf(), addzbufImBuf(), an_stringdec(), ANIM_OT_channels_select_border(), apply_mp_locks_normalize(), applyModifier(), armature_circle_select(), armature_flip_names_exec(), avi_fetchibuf(), backdrawview3d(), BKE_add_image_extension(), BKE_alphatest_ibuf(), BKE_mesh_validate(), BKE_mesh_validate_arrays(), BKE_mesh_validate_dm(), BKE_ptcache_bake(), blend_save_check(), BLI_edgehash_new(), BLI_vfontchar_from_freetypefont(), blo_read_file_internal(), bpath_relocate_visitor(), bpy_class_call(), BPy_EnumProperty(), bpy_lib_enter(), bpy_prop_update_cb(), build_gammatabs(), but_shortcut_name_func(), button_activate_init(), button_activate_state(), bvhtree_from_mesh_edges(), bvhtree_from_mesh_faces(), bvhtree_from_mesh_verts(), calc_action_range(), calc_fcurve_bounds(), calc_fcurve_range(), calc_weightpaint_vert_color(), camera_params_from_object(), camera_params_from_view3d(), camera_view_frame_fit_to_scene(), clean_paths_visit_cb(), clip_keymap(), CLIP_OT_select_border(), Compress_JPEG(), console_keymap(), console_modal_select_apply(), console_move_exec(), copy_attr(), copy_object(), copy_pose(), CURVE_OT_primitive_bezier_circle_add(), CURVE_OT_primitive_bezier_curve_add(), CURVE_OT_primitive_nurbs_circle_add(), CURVE_OT_primitive_nurbs_curve_add(), CURVE_OT_primitive_nurbs_path_add(), curvesurf_prim_add(), cut_seq_hard(), cut_seq_list(), cut_seq_soft(), d2dda(), Decode_JPEG(), do_bake_thread(), do_lasso_select_armature(), do_render_seq(), do_write_image_or_movie(), draw_depth(), draw_depth_gpencil(), draw_ghost_poses(), draw_ghost_poses_keys(), draw_ghost_poses_range(), draw_gpencil_view3d(), draw_textured_begin(), drawcamera(), drawObjectSelect(), drawspiral(), drawviewborder(), dupli_extrude_cursor(), duplicate_pose_channel_data(), ED_autokeyframe_object(), ED_autokeyframe_pchan(), ED_fileselect_init_layout(), ED_fileselect_set_params(), ED_keymap_animchannels(), ED_keymap_armature(), ED_keymap_curve(), ED_keymap_mesh(), ED_keymap_metaball(), ED_keymap_object(), ED_keymap_paint(), ED_keymap_screen(), ED_keymap_uvedit(), ED_marker_keymap(), ED_mesh_mirrtopo_recalc_check(), ED_object_add_generic_get_opts(), ED_object_get_active_image(), ED_operator_animview_active(), ED_operator_region_view3d_active(), ED_operatormacros_armature(), ED_operatormacros_clip(), ED_operatormacros_node(), ED_operatormacros_object(), ED_vgroup_copy_array(), ED_vgroup_data_create(), ED_vgroup_give_array(), ED_vgroup_mirror(), ED_view3d_calc_camera_border_size(), ED_view3d_camera_lock_sync(), ED_view3d_draw_offscreen(), ED_view3d_lock(), ED_view3d_quadview_update(), ED_view3d_to_object(), ED_view3d_win_to_3d(), editvert_mirror_update(), face_select_all_exec(), face_select_inverse_exec(), file_draw_check_exists(), file_init(), file_keymap(), file_refresh(), fill_input_buffer(), findMissingFiles_visit_cb(), fly_modal(), flyApply(), flyApply_ndof(), flyEvent(), foreach_attr_type(), freeSeqData(), get_keyframe_extents(), get_selected_defgroups(), GHOST_SystemWin32::getButtons(), GHOST_WindowWin32::GHOST_WindowWin32(), give_active_mtex(), give_ibuf_seq_threaded(), gp_camera_view_subrect(), gp_paint_initstroke(), gp_stroke_newfrombuffer(), GRAPH_OT_select_border(), graphedit_keymap_keyframes(), graphkeys_borderselect_exec(), graphkeys_deselectall_exec(), graphkeys_view_selected_exec(), handle_app1(), handle_layer_buttons(), has_locked_group(), has_locked_group_selected(), id_data_find_fcurve(), ignore_parent_tx(), image_keymap(), image_save_as_check(), image_save_as_exec(), image_save_as_invoke(), imagewrap(), imb_addencodedbufferImBuf(), imb_addrectfloatImBuf(), imb_addrectImBuf(), IMB_anim_get_fps(), imb_enlargeencodedbufferImBuf(), index_rebuild_fallback(), INFO_OT_select_border(), GHOST_SystemWin32::init(), init_jpeg(), init_ocean_modifier_bake(), initFlyInfo(), initgrabz(), input_have_to_preprocess(), insert_key_menu_invoke(), GHOST_WindowWin32::installDrawingContext(), jpegmemdestmgr_empty_output_buffer(), jpegmemsrcmgr_fill_input_buffer(), key_pointer_size(), keymap_particle(), linked_limit_default(), load_file(), GHOST_WindowWin32::loadCursor(), logic_buttons(), logicbricks_move_property_get(), M_Geometry_intersect_line_sphere(), M_Geometry_intersect_line_sphere_2d(), make_local_armature(), make_local_brush(), make_local_camera(), make_local_curve(), make_local_image(), make_local_lamp(), make_local_lattice(), make_local_material(), make_local_mball(), make_local_mesh(), make_local_object(), make_local_particlesettings(), make_local_speaker(), make_local_texture(), make_local_world(), make_localact_init_cb(), make_object_duplilist_real(), make_prim(), make_single_user_exec(), makeBevelList(), makebody_tga(), makeFilesAbsolute_visit_cb(), makeFilesRelative_visit_cb(), MARKER_OT_select_border(), MESH_OT_primitive_circle_add(), MESH_OT_primitive_cone_add(), MESH_OT_primitive_cube_add(), MESH_OT_primitive_cylinder_add(), MESH_OT_primitive_grid_add(), MESH_OT_primitive_ico_sphere_add(), MESH_OT_primitive_monkey_add(), MESH_OT_primitive_plane_add(), MESH_OT_primitive_uv_sphere_add(), mesh_to_curve(), minmax_object(), motionpaths_calc_update_scene(), mouse_graph_keys(), move_camera(), moveCloserToDistanceFromPlane(), navmesh_obmode_poll(), nla_keymap_channels(), nla_keymap_main(), nlaedit_viewsel_exec(), node_composit_exec_output_file(), node_composit_get_float_buffer(), node_keymap(), NODE_OT_select_border(), nodeSetActiveID(), nodeUpdateID(), normal_projection_project_vertex(), ntreeCopyTree(), objchr_to_ftvfontdata(), object_add_material_slot(), object_armature_add_exec(), object_camera_add_exec(), object_constraint_copy_exec(), object_make_proxy(), object_metaball_add_exec(), object_mouse_select_menu(), object_origin_set_exec(), OBJECT_OT_add(), OBJECT_OT_armature_add(), OBJECT_OT_camera_add(), OBJECT_OT_effector_add(), OBJECT_OT_metaball_add(), OBJECT_OT_speaker_add(), OBJECT_OT_text_add(), OBJECT_OT_vertex_group_invert(), OBJECT_OT_vertex_group_mirror(), OBJECT_OT_vertex_group_normalize_all(), object_remove_material_slot(), object_select_mirror_exec(), object_track_clear_exec(), ocean_texture(), oceanbake_endjob(), operator_search_cb(), outliner_keymap(), parent_clear_exec(), pose_bone_flip_active_exec(), pose_constraint_copy_exec(), pose_flip_names_exec(), pose_propagate_get_refVal(), pose_visual_transform_apply_exec(), project_bucket_clip_face(), project_paint_begin(), ptcache_bake_thread(), pyop_as_string(), pyop_call(), pyop_getinstance(), pyop_getrna(), pyop_poll(), PYOP_wrap_macro_define(), pyrna_func_call(), pyrna_prop_collection_subscript(), pyrna_prop_collection_subscript_str_lib_pair_ptr(), pyrna_py_to_prop(), pyrna_register_class(), python_script_error_jump_text(), q_scale_linear_interpolation(), RE_BlenderAnim(), RE_InitState(), RE_rayobject_octree_intersect(), RE_WriteEnvmapResult(), RE_WriteRenderResult(), redistribute_change(), GHOST_WindowWin32::removeDrawingContext(), render_result_exr_file_read(), report_textview_begin(), report_textview_step(), rewrite_path_alloc(), rewrite_path_fixed(), rewrite_path_fixed_dirfile(), RNA_action_local_itemf(), rna_def_group_sockets_api(), RNA_group_local_itemf(), rna_id_write_error(), rna_idp_path_create(), RNA_image_local_itemf(), RNA_property_as_string(), RNA_scene_local_itemf(), RNA_struct_contains_property(), rna_undo_itemf(), save_image_doit(), save_image_options_init(), scene_update_for_newframe(), screen_opengl_render_anim_step(), screen_opengl_render_apply(), SCREEN_OT_animation_cancel(), screenshot_data_create(), screenshot_startjob(), select_grouped_data(), select_grouped_effect(), select_grouped_effect_link(), select_grouped_time_overlap(), select_grouped_type(), select_grouped_type_basic(), select_grouped_type_effect(), seq_must_swap_input_in_blend_mode(), seq_proxy_get_fname(), seq_render_strip(), seqbase_isolated_sel_check(), sequencer_add_effect_strip_exec(), sequencer_add_generic_strip_exec(), sequencer_add_image_strip_exec(), sequencer_add_scene_strip_exec(), sequencer_change_path_exec(), sequencer_delete_exec(), sequencer_keymap(), SEQUENCER_OT_movie_strip_add(), SEQUENCER_OT_select_border(), sequencer_paste_exec(), sequencer_select_grouped_exec(), GHOST_SystemWin32::setCursorPosition(), GHOST_WindowWin32::setOrder(), GHOST_WindowWin32::setState(), shrinkwrap_get_tarmat(), smooth_view(), SOUND_OT_open_mono(), space_image_file_exists_poll(), spruneL(), SURFACE_OT_primitive_nurbs_surface_circle_add(), SURFACE_OT_primitive_nurbs_surface_curve_add(), SURFACE_OT_primitive_nurbs_surface_cylinder_add(), SURFACE_OT_primitive_nurbs_surface_sphere_add(), SURFACE_OT_primitive_nurbs_surface_surface_add(), SURFACE_OT_primitive_nurbs_surface_torus_add(), GHOST_WindowWin32::swapBuffers(), text_keymap(), transform_keymap_for_space(), tree_element_active_ebone(), tryToAddVerts(), txt_comment(), txt_indent(), txt_uncomment(), txt_unindent(), ui_but_is_rna_undo(), ui_check_but(), ui_do_but_textedit(), UI_icon_draw_preview_aspect_size(), UI_icon_draw_size(), ui_is_a_warp_but(), ui_is_but_rna_valid(), ui_layer_but_cb(), ui_menu_block_set_keymaps(), ui_textedit_step_next_utf8(), ui_textedit_step_prev_utf8(), ui_tooltip_create(), UI_view2d_keymap(), uiBeginBlock(), uiLayoutOperatorButs(), uiPupMenuInvoke(), unwrap_exec(), update_changed_seq_recurs(), UV_OT_select_border(), uv_texture_add_exec(), Vector_axis_get(), Vector_axis_set(), vert_select_all_exec(), vert_select_inverse_exec(), vertex_color_add_exec(), vgroup_blend(), vgroup_delete_edit_mode(), view3d_camera_to_view_selected_exec(), view3d_draw_transp(), view3d_draw_xray(), view3d_draw_xraytransp(), view3d_get_view_aligned_coordinate(), view3d_keymap(), view3d_layers_invoke(), view3d_main_area_draw_objects(), view3d_new(), view3d_opengl_select(), VIEW3D_OT_select_border(), view3d_update_depths_rect(), viewrotate_modal(), visual_transform_apply_exec(), weight_paint_sample_enum_itemf(), weight_sample_invoke(), wm_block_create_splash(), wm_event_do_handlers(), WM_key_event_operator_id(), wm_operator_init_from_last(), WM_operator_poll_context(), WM_operator_properties_filesel(), WM_operator_props_dialog_popup(), WM_operator_ui_popup(), WM_operatortype_append_macro(), WM_read_file(), WM_read_homefile(), wm_resource_check_prev(), wm_window_keymap(), wpaint_stroke_test_start(), write_jpeg(), and writePackedFile().

#define UNLIKELY (   x)    (x)

Definition at line 310 of file BLI_utildefines.h.

Referenced by BLI_mempool_iterstep().

#define UNUSED (   x)    UNUSED_ ## x

Definition at line 246 of file BLI_utildefines.h.

#define UNUSED_FUNCTION (   x)    UNUSED_ ## x

Definition at line 252 of file BLI_utildefines.h.

#define USHORTTOUCHAR (   val)    ((unsigned char)(((val) >= 65535-128)? 255: ((val)+128)>>8))

Definition at line 111 of file BLI_utildefines.h.

Referenced by dither_value(), and ushort_to_byte_v4().

#define VECADD (   v1,
  v2,
  v3 
)
Value:
{                                                    \
        *(v1)=   *(v2)   + *(v3);                                             \
        *(v1+1)= *(v2+1) + *(v3+1);                                           \
        *(v1+2)= *(v2+2) + *(v3+2);                                           \
    }

Definition at line 144 of file BLI_utildefines.h.

Referenced by add_fmatrix_fmatrix(), add_lfvector_lfvector(), cloth_apply_spring_force(), cloth_bvh_objcollision(), cloth_calc_spring_force(), implicit_solver(), load_editMesh(), and recalc_emitter_field().

#define VECADDFAC (   v1,
  v2,
  v3,
  fac 
)
Value:
{                                             \
        *(v1)=   *(v2)   + *(v3)*(fac);                                       \
        *(v1+1)= *(v2+1) + *(v3+1)*(fac);                                     \
        *(v1+2)= *(v2+2) + *(v3+2)*(fac);                                     \
    }

Definition at line 158 of file BLI_utildefines.h.

Referenced by applyModifier(), and BME_split_edge().

#define VECCOPY (   v1,
  v2 
)
#define VECCOPY2D (   v1,
  v2 
)
Value:
{                                                   \
        *(v1)=   *(v2);                                                       \
        *(v1+1)= *(v2+1);                                                     \
    }

Definition at line 134 of file BLI_utildefines.h.

Referenced by armature_click_extrude_invoke(), brush_edit_apply_event(), gp_strokepoint_convertcoords(), ui_do_but_LINK(), and viewops_data_create().

#define VECSUB (   v1,
  v2,
  v3 
)
#define VECSUB2D (   v1,
  v2,
  v3 
)
Value:
{                                              \
        *(v1)=   *(v2)   - *(v3);                                             \
        *(v1+1)= *(v2+1) - *(v3+1);                                           \
    }

Definition at line 154 of file BLI_utildefines.h.

Referenced by gp_stroke_convertcoords(), set_3dcursor_invoke(), sk_projectDrawPoint(), and view3d_get_view_aligned_coordinate().

#define VECSUBFAC (   v1,
  v2,
  v3,
  fac 
)
Value:
{                                             \
        *(v1)=   *(v2)   - *(v3)*(fac);                                       \
        *(v1+1)= *(v2+1) - *(v3+1)*(fac);                                     \
        *(v1+2)= *(v2+2) - *(v3+2)*(fac);                                     \
    }

Definition at line 163 of file BLI_utildefines.h.

#define WARN_UNUSED

Definition at line 258 of file BLI_utildefines.h.